Skip to content

Commit ce7ac9e

Browse files
committed
BPF: fix a buildbot test failure
Commit 737e421 ("[Attr] support btf_type_tag attribute") added btf_type_tag support in llvm. Buildbot reported a failure with attr-btf_type_tag.ll. ; CHECK-NEXT: DW_AT_type (0x[[T1:[0-9]+]] "int ***") <stdin>:15:2: note: possible intended match here DW_AT_type (0x0000002f "int ***") The pattern [0-9]+ is not enough to match 0000002f, we need [0-9a-f]+. This patch fixed the issue.
1 parent d4b1cf8 commit ce7ac9e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

llvm/test/DebugInfo/attr-btf_type_tag.ll

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@
3131

3232
; CHECK: DW_TAG_variable
3333
; CHECK-NEXT: DW_AT_name ("g")
34-
; CHECK-NEXT: DW_AT_type (0x[[T1:[0-9]+]] "int ***")
34+
; CHECK-NEXT: DW_AT_type (0x[[T1:[0-9a-f]+]] "int ***")
3535

3636
; CHECK: 0x[[T1]]: DW_TAG_pointer_type
37-
; CHECK-NEXT: DW_AT_type (0x[[T2:[0-9]+]] "int **")
37+
; CHECK-NEXT: DW_AT_type (0x[[T2:[0-9a-f]+]] "int **")
3838

3939
; CHECK: DW_TAG_LLVM_annotation
4040
; CHECK-NEXT: DW_AT_name ("btf_type_tag")
@@ -43,7 +43,7 @@
4343
; CHECK: NULL
4444

4545
; CHECK: 0x[[T2]]: DW_TAG_pointer_type
46-
; CHECK-NEXT: DW_AT_type (0x[[T3:[0-9]+]] "int *")
46+
; CHECK-NEXT: DW_AT_type (0x[[T3:[0-9a-f]+]] "int *")
4747

4848
; CHECK: DW_TAG_LLVM_annotation
4949
; CHECK-NEXT: DW_AT_name ("btf_type_tag")
@@ -52,7 +52,7 @@
5252
; CHECK: NULL
5353

5454
; CHECK: 0x[[T3]]: DW_TAG_pointer_type
55-
; CHECK-NEXT: DW_AT_type (0x[[#]] "int")
55+
; CHECK-NEXT: DW_AT_type (0x{{[0-9a-f]+}} "int")
5656

5757
!13 = !{i32 7, !"Dwarf Version", i32 4}
5858
!14 = !{i32 2, !"Debug Info Version", i32 3}

0 commit comments

Comments
 (0)