[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


================
@@ -1632,6 +1632,13 @@ void BinaryContext::preprocessDWODebugInfo() {
           DwarfUnit->getUnitDIE().find(
               {dwarf::DW_AT_dwo_name, dwarf::DW_AT_GNU_dwo_name}),
           "");
+      if (DWOName.empty()) {
+        errs() << "BOLT-ERROR: broken DWARF found in CU at offset 0x"
----------------
ayermolo wrote:

this->errs()

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


More information about the llvm-commits mailing list