Skip to content

Commit c6774f4

Browse files
Changed regex to check for non-zero line numbers with prologue_ends only and fixed bug with regex checking for multiple digit column numbers in .loc CHECK
1 parent 338cc32 commit c6774f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/DebugInfo/top_level_code.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ func markUsed<T>(_ t: T) {}
77
// proceeds to the first line.
88
// CHECK: .loc {{[0-9]}} 0 {{[0-9]}}
99
// CHECK-NOT: Lfunc_end0:
10-
// CHECK: .loc {{[0-9]}} {{[0-9][0-9]*}} {{[0-9]}} prologue_end
10+
// CHECK: .loc {{[0-9]+}} {{[1-9][0-9]*}} {{[0-9]+}} prologue_end
1111
var a = 1
1212
var b = 2
1313
markUsed(a+b)

0 commit comments

Comments
 (0)