Skip to content

Commit 25bbe1a

Browse files
committed
We should not bend if the line table is wrong
1 parent c7461d3 commit 25bbe1a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

llvm/test/tools/llvm-dwarfdump/verify_stmt_seq.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
# CHECK_INVALID: error: DW_AT_LLVM_stmt_sequence offset 0x00000000 is not within the line table bounds [0x0000002e, 0x000000fd)
1010
# CHECK_INVALID: DW_AT_LLVM_stmt_sequence [DW_FORM_sec_offset] (0x00000000)
1111

12+
# CHECK_INVALID: error: DW_AT_LLVM_stmt_sequence offset 0x000000d3 does not point to a valid sequence offset in the line table
13+
# CHECK_INVALID: DW_AT_LLVM_stmt_sequence [DW_FORM_sec_offset] (0x000000d3)
14+
1215
# CHECK_INVALID: error: DIE has invalid DW_AT_LLVM_stmt_sequence encoding
1316
# CHECK_INVALID: DW_AT_LLVM_stmt_sequence [DW_FORM_data4] (0x000000a7)
1417

@@ -22,7 +25,7 @@
2225
# CHECK_INVALID-NEXT: error: DW_AT_LLVM_stmt_sequence offset out of bounds occurred 1 time(s).
2326
# CHECK_INVALID-NEXT: error: DW_AT_LLVM_stmt_sequence offset out of line table bounds occurred 1 time(s).
2427
# CHECK_INVALID-NEXT: error: Invalid DW_AT_LLVM_stmt_sequence encoding occurred 1 time(s).
25-
# CHECK_INVALID-NEXT: error: Invalid DW_AT_LLVM_stmt_sequence offset occurred 1 time(s).
28+
# CHECK_INVALID-NEXT: error: Invalid DW_AT_LLVM_stmt_sequence offset occurred 2 time(s).
2629

2730
--- !mach-o
2831
IsLittleEndian: true

0 commit comments

Comments
 (0)