[PATCH] D121398: Return an error when dsymutil might produce an invalid mach-o file.

Jonas Devlieghere via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 10 11:42:31 PST 2022


JDevlieghere added inline comments.


================
Comment at: llvm/tools/dsymutil/MachOUtils.cpp:325
+      if (FileOffset > UINT32_MAX)
+        return error("section " + Sec->getName() + "'s file offset exceeds 4GB and will produce an invalid mach-o file");
     }
----------------
JDevlieghere wrote:
> aprantl wrote:
> > what does error() return?
> 
It prints the error and returns false.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D121398/new/

https://reviews.llvm.org/D121398



More information about the llvm-commits mailing list