[llvm] [BOLT][DWARF] Fix parent chain in debug_names entries with forward declaration. (PR #93865)

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 24 19:46:42 PDT 2026


================
@@ -0,0 +1,708 @@
+# REQUIRES: system-linux
+
+# RUN: llvm-mc -dwarf-version=5 -filetype=obj -triple x86_64-unknown-linux %s -o %t1.o
+# RUN: %clang %cflags -dwarf-5 %t1.o -o %t.exe -Wl,-q
+# RUN: llvm-bolt %t.exe -o %t.bolt --update-debug-sections
+# RUN: llvm-dwarfdump --debug-names %t.bolt  FileCheck --check-prefix=POSTCHECK %s
----------------
MaskRay wrote:

The llvm-dwarfdump passed even if the pipe `|` was missing: cl:: parsed `--check-prefix` as grouped `-c` `-h`…, hit `-h`, printed `--help`, exit 0. FileCheck never ran.

Found by #224958

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


More information about the llvm-commits mailing list