[llvm] 4ae529b - Loosen DWARF form check in discriminant-member.ll (#139258)
via llvm-commits
llvm-commits at lists.llvm.org
Fri May 9 07:05:42 PDT 2025
Author: Tom Tromey
Date: 2025-05-09T10:05:38-04:00
New Revision: 4ae529b764390fb7b78bf1871bb90ff5c4c7bbbd
URL: https://github.com/llvm/llvm-project/commit/4ae529b764390fb7b78bf1871bb90ff5c4c7bbbd
DIFF: https://github.com/llvm/llvm-project/commit/4ae529b764390fb7b78bf1871bb90ff5c4c7bbbd.diff
LOG: 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 <hubert.reinterpretcast at gmail.com>
Added:
Modified:
llvm/test/DebugInfo/Generic/discriminant-member.ll
Removed:
################################################################################
diff --git a/llvm/test/DebugInfo/Generic/discriminant-member.ll b/llvm/test/DebugInfo/Generic/discriminant-member.ll
index 8359aef870e14..240b5caf5d8fc 100644
--- a/llvm/test/DebugInfo/Generic/discriminant-member.ll
+++ b/llvm/test/DebugInfo/Generic/discriminant-member.ll
@@ -5,14 +5,14 @@
; of discriminants, and where both refer to a DIE that is not a child
; of the variant.
-; CHECK: DW_AT_name [DW_FORM_strp] ({{.*}} = "Discr")
+; CHECK: DW_AT_name [DW_FORM_str{{[a-z]+}}] ({{(.* = )?}}"Discr")
; CHECK: DW_TAG_variant_part
; CHECK-NOT: TAG
; CHECK: DW_AT_discr [DW_FORM_ref4] (cu + {{0x[0-9a-fA-F]+}} => {[[OFFSET:0x[0-9a-fA-F]+]]})
; CHECK: DW_TAG_variant
; CHECK: DW_AT_discr_list [DW_FORM_block1] (<0x05> 00 17 01 61 6c )
; CHECK: DW_TAG_member
-; CHECK: DW_AT_name [DW_FORM_strp] ({{.*}} = "var0")
+; CHECK: DW_AT_name [DW_FORM_str{{[a-z]+}}] ({{(.* = )?}}"var0")
; CHECK: DW_AT_type
; CHECK: DW_AT_alignment
; CHECK: DW_AT_data_member_location [DW_FORM_data1] (0x00)
More information about the llvm-commits
mailing list