[llvm] [DebugInfo] Fix line 0 records incorrectly having is_stmt set (PR #166627)
Orlando Cazalet-Hyams via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 20 03:37:03 PST 2025
================
@@ -0,0 +1,30 @@
+; Test that non-zero line records DO have is_stmt set
+; This is for comparison with line 0 behavior (issue #33870 / Bugzilla #34522)
+;
+; When scopeLine is non-zero, the initial location directive should have is_stmt set.
+
+; RUN: %llc_dwarf -mtriple=x86_64-unknown-linux -O0 -filetype=obj < %s | llvm-dwarfdump --debug-line - | FileCheck %s
+
+; With scopeLine=10, we should see line 10 with is_stmt and prologue_end
+; CHECK: 0x{{[0-9a-f]+}} 10 {{[0-9]+}} {{[0-9]+}} {{[0-9]+}} {{[0-9]+}} {{[0-9]+}} is_stmt prologue_end
----------------
OCHyams wrote:
Possibly worth adding table headers so it's clear what each column is?
alternatively, I think `; CHECK: 0x{{[0-9a-f]+}} 10 {{.*}} is_stmt prologue_end` is probably fine.
https://github.com/llvm/llvm-project/pull/166627
More information about the llvm-commits
mailing list