Skip to content

Commit 4ae529b

Browse files
Loosen DWARF form check in discriminant-member.ll (#139258)
The new test discriminant-member.ll (see #138953) failed on AIX. It seems that the string form is different in the DWARF. The log reads: 50: DW_AT_name [DW_FORM_string] ("Discr") ... but the test only looks for DW_FORM_strp. Since the precise form isn't important here, this patch changes the test to accept any string form. --------- Co-authored-by: Hubert Tong <[email protected]>
1 parent 10f5120 commit 4ae529b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/test/DebugInfo/Generic/discriminant-member.ll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@
55
; of discriminants, and where both refer to a DIE that is not a child
66
; of the variant.
77

8-
; CHECK: DW_AT_name [DW_FORM_strp] ({{.*}} = "Discr")
8+
; CHECK: DW_AT_name [DW_FORM_str{{[a-z]+}}] ({{(.* = )?}}"Discr")
99
; CHECK: DW_TAG_variant_part
1010
; CHECK-NOT: TAG
1111
; CHECK: DW_AT_discr [DW_FORM_ref4] (cu + {{0x[0-9a-fA-F]+}} => {[[OFFSET:0x[0-9a-fA-F]+]]})
1212
; CHECK: DW_TAG_variant
1313
; CHECK: DW_AT_discr_list [DW_FORM_block1] (<0x05> 00 17 01 61 6c )
1414
; CHECK: DW_TAG_member
15-
; CHECK: DW_AT_name [DW_FORM_strp] ({{.*}} = "var0")
15+
; CHECK: DW_AT_name [DW_FORM_str{{[a-z]+}}] ({{(.* = )?}}"var0")
1616
; CHECK: DW_AT_type
1717
; CHECK: DW_AT_alignment
1818
; CHECK: DW_AT_data_member_location [DW_FORM_data1] (0x00)

0 commit comments

Comments
 (0)