[llvm] ce7ac9e - BPF: fix a buildbot test failure
Yonghong Song via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 4 16:10:19 PDT 2021
Author: Yonghong Song
Date: 2021-11-04T16:06:12-07:00
New Revision: ce7ac9e66aba2b937b3d3b5505ce6cc75dcc56ac
URL: https://github.com/llvm/llvm-project/commit/ce7ac9e66aba2b937b3d3b5505ce6cc75dcc56ac
DIFF: https://github.com/llvm/llvm-project/commit/ce7ac9e66aba2b937b3d3b5505ce6cc75dcc56ac.diff
LOG: BPF: fix a buildbot test failure
Commit 737e4216c537 ("[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.
Added:
Modified:
llvm/test/DebugInfo/attr-btf_type_tag.ll
Removed:
################################################################################
diff --git a/llvm/test/DebugInfo/attr-btf_type_tag.ll b/llvm/test/DebugInfo/attr-btf_type_tag.ll
index 6cf72a899cd0..4561d0512a99 100644
--- a/llvm/test/DebugInfo/attr-btf_type_tag.ll
+++ b/llvm/test/DebugInfo/attr-btf_type_tag.ll
@@ -31,10 +31,10 @@
; CHECK: DW_TAG_variable
; CHECK-NEXT: DW_AT_name ("g")
-; CHECK-NEXT: DW_AT_type (0x[[T1:[0-9]+]] "int ***")
+; CHECK-NEXT: DW_AT_type (0x[[T1:[0-9a-f]+]] "int ***")
; CHECK: 0x[[T1]]: DW_TAG_pointer_type
-; CHECK-NEXT: DW_AT_type (0x[[T2:[0-9]+]] "int **")
+; CHECK-NEXT: DW_AT_type (0x[[T2:[0-9a-f]+]] "int **")
; CHECK: DW_TAG_LLVM_annotation
; CHECK-NEXT: DW_AT_name ("btf_type_tag")
@@ -43,7 +43,7 @@
; CHECK: NULL
; CHECK: 0x[[T2]]: DW_TAG_pointer_type
-; CHECK-NEXT: DW_AT_type (0x[[T3:[0-9]+]] "int *")
+; CHECK-NEXT: DW_AT_type (0x[[T3:[0-9a-f]+]] "int *")
; CHECK: DW_TAG_LLVM_annotation
; CHECK-NEXT: DW_AT_name ("btf_type_tag")
@@ -52,7 +52,7 @@
; CHECK: NULL
; CHECK: 0x[[T3]]: DW_TAG_pointer_type
-; CHECK-NEXT: DW_AT_type (0x[[#]] "int")
+; CHECK-NEXT: DW_AT_type (0x{{[0-9a-f]+}} "int")
!13 = !{i32 7, !"Dwarf Version", i32 4}
!14 = !{i32 2, !"Debug Info Version", i32 3}
More information about the llvm-commits
mailing list