[llvm] [BOLT,test] Add missing pipe in dwarf5-debug-names-skip-forward-decl.s (PR #226338)
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 24 19:02:36 PDT 2026
https://github.com/MaskRay created https://github.com/llvm/llvm-project/pull/226338
With cl::Grouping, --check-prefix=POSTCHECK parses as -c -h..., so
llvm-dwarfdump prints --help and exits 0, and the checks never run.
>From 131b4796d26b676e54df560aecb3520a0027abdb Mon Sep 17 00:00:00 2001
From: Fangrui Song <i at maskray.me>
Date: Thu, 24 Sep 2026 10:56:55 -0700
Subject: [PATCH] [BOLT,test] Add missing pipe in
dwarf5-debug-names-skip-forward-decl.s
With cl::Grouping, --check-prefix=POSTCHECK parses as -c -h..., so
llvm-dwarfdump prints --help and exits 0, and the checks never run.
---
bolt/test/X86/dwarf5-debug-names-skip-forward-decl.s | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/bolt/test/X86/dwarf5-debug-names-skip-forward-decl.s b/bolt/test/X86/dwarf5-debug-names-skip-forward-decl.s
index cae27f3cbd3f45..4c7b3c35e72a73 100644
--- a/bolt/test/X86/dwarf5-debug-names-skip-forward-decl.s
+++ b/bolt/test/X86/dwarf5-debug-names-skip-forward-decl.s
@@ -3,7 +3,7 @@
# 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
+# RUN: llvm-dwarfdump --debug-names %t.bolt | FileCheck --check-prefix=POSTCHECK %s
## This test checks that BOLT doesn't set DW_IDX_parent an entry, InnerState, when it's parent is a forward declaration.
More information about the llvm-commits
mailing list