[llvm] [BOLT][DWARF] Skip processing DWO files with ID 0 (PR #154749)

Alexander Yermolovich via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 8 10:53:53 PDT 2025


================
@@ -583,6 +583,15 @@ DWARFDie DIEBuilder::resolveDIEReference(
   uint64_t TmpRefOffset = RefOffset;
   if ((RefCU =
            getUnitForOffset(*this, *DwarfContext, TmpRefOffset, AttrSpec))) {
+    std::optional<uint64_t> DWOId = RefCU->getDWOId();
----------------
ayermolo wrote:

Why is this necessary?

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


More information about the llvm-commits mailing list