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

James Henderson via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Tue Sep 29 02:09:06 PDT 2026


================
@@ -3661,9 +3661,10 @@ static void dumpInput(StringRef file) {
     dumpObject(O);
   else if (MachOUniversalBinary *UB = dyn_cast<MachOUniversalBinary>(&Binary))
     parseInputMachO(UB);
-  else if (OffloadBinary *OB = dyn_cast<OffloadBinary>(&Binary))
+  else if (isa<OffloadBinary>(&Binary)) {
+    std::unique_ptr<MemoryBuffer> OB = OBinary.takeBinary().second;
     dumpOffloadSections(*OB);
-  else
+  } else
----------------
jh7370 wrote:

Nit: the LLVM coding standard says that if one block in an if/else chain requires braces, they all should have them.

https://github.com/llvm/llvm-project/pull/222774


More information about the llvm-branch-commits mailing list