================
@@ -58,7 +89,8 @@ Expected<OffloadYAML::Binary *> dump(MemoryBufferRef Source,
         *BinariesOrErr;
     populateYAML(*YAMLBinary, Binaries, Saver);
----------------
yxsamliu wrote:

`populateYAML` stores `Member.Content` as a view into `Binaries`, but 
`Binaries` is destroyed before the YAML is written. This seems to cause the 
macOS failures that output zeros. Could we copy the image data into `Saver` 
storage or keep its owner alive longer?

https://github.com/llvm/llvm-project/pull/222774
_______________________________________________
llvm-branch-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

Reply via email to