Skip to content

Commit 6249dfc

Browse files
committed
Use the exact bitwidth integer for this test.
Fixes a regression in the test suite introduced in #3347 on 32-bit architectures.
1 parent 817b8e3 commit 6249dfc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/DebugInfo/guard-let.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ public func f(_ i : Int?)
66
// CHECK: define {{.*}}@_TF4main1fFGSqSi_T_
77
// CHECK: %[[PHI:.*]] = phi
88
// The shadow copy store should not have a location.
9-
// CHECK: store i64 %[[PHI]], i64* %val.addr, align 8, !dbg ![[DBG0:.*]]
10-
// CHECK: @llvm.dbg.declare(metadata i64* %val.addr, {{.*}}, !dbg ![[DBG1:.*]]
9+
// CHECK: store {{(i32|i64)}} %[[PHI]], {{(i32|i64)}}* %val.addr, align {{(4|8)}}, !dbg ![[DBG0:.*]]
10+
// CHECK: @llvm.dbg.declare(metadata {{(i32|i64)}}* %val.addr, {{.*}}, !dbg ![[DBG1:.*]]
1111
// CHECK: ![[DBG0]] = !DILocation(line: 0,
1212
// CHECK: ![[DBG1]] = !DILocation(line: [[@LINE+1]],
1313
guard let val = i else { return }

0 commit comments

Comments
 (0)