[llvm-branch-commits] [llvm] [Offloading] Add support for compressed OffloadBinary types (PR #222774)

Yaxun Liu via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Fri Sep 11 07:49:01 PDT 2026


================
@@ -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


More information about the llvm-branch-commits mailing list