Skip to content

Commit 4500aad

Browse files
[DebugInfo][NFC] Update test to not check width of alloca integer argument
For the size argument of an alloca, some targets use a i32 bit integer, some use a 64 bit integer; the updated test was hard-coding i64, which caused it to fail in other targets. This is irrelevant for what the test is doing, so we remove that.
1 parent 15f7a28 commit 4500aad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/DebugInfo/inlined-generics-basic.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public class C<R> {
5151
// SIL: function_ref {{.*}}yes{{.*}} scope [[F1G1]]
5252
// SIL: function_ref {{.*}}use{{.*}} scope [[F1G3H]]
5353
// IR: dbg.value(metadata ptr %[[ARG_S]], metadata ![[MD_1_0:[0-9]+]]
54-
// IR: %[[RS_PAIR:.*]] = alloca i8, i64 %
54+
// IR: %[[RS_PAIR:.*]] = alloca i8, i{{.*}} %
5555
// IR: dbg.declare(metadata ptr %[[RS_PAIR]], metadata ![[GRS_T:[0-9]+]],
5656
// IR: dbg.value(metadata ptr %[[ARG_0]], metadata ![[S:[0-9]+]]
5757
// IR: dbg.value(metadata ptr %[[ARG_0]], metadata ![[GS_T:[0-9]+]]

0 commit comments

Comments
 (0)