Skip to content

Commit cbc1d20

Browse files
committed
Really fix those tests
1 parent b23ad8f commit cbc1d20

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

test/multifile/require-layout-generic-arg-closure.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,6 @@ public func requestType2<T>(x: T) {
2424
// FILE2: [[CLASSMETADATA:%.*]] = call %swift.type* @swift_allocateGenericClassMetadata
2525
// FILE2: [[ADDR:%.*]] = bitcast %swift.type* [[CLASSMETADATA]] to i8**
2626
// This offset of T here needs to be the same as the offset above.
27-
// FILE2: [[T_IN_CLASSMETADATA:%.*]] = getelementptr inbounds i8*, i8** [[ADDR]], i64 16
27+
// FILE2: [[T_IN_CLASSMETADATA:%.*]] = getelementptr inbounds i8*, i8** [[ADDR]], i32 16
2828
// FILE2: [[T2:%.*]] = bitcast %swift.type* [[T]] to i8*
2929
// FILE2: store i8* [[T2]], i8** [[T_IN_CLASSMETADATA]]

test/multifile/require-layout-generic-arg-subscript.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
// The offset of the typemetadata in the class typemetadata must match.
77

8-
// FILE1: define hidden swiftcc i64 @{{.*}}4test12AccessorTestCySiAA3Sub{{.*}}(%T4test3SubC*, %T4test12AccessorTestC* swiftself)
8+
// FILE1: define hidden swiftcc i64 @_T04test12AccessorTestCSiAA3SubCyxGcluig(%T4test3SubC*, %T4test12AccessorTestC* swiftself)
99
// FILE1: [[T1:%.*]] = bitcast %T4test3SubC* %0 to %swift.type**
1010
// FILE1: [[TYPEMETADATA:%.*]] = load %swift.type*, %swift.type** [[T1]]
1111
// FILE1: [[T2:%.*]] = bitcast %swift.type* [[TYPEMETADATA]] to %swift.type**
@@ -28,6 +28,6 @@ public class AccessorTest {
2828
// FILE2: [[CLASSMETADATA:%.*]] = call %swift.type* @swift_allocateGenericClassMetadata
2929
// FILE2: [[ADDR:%.*]] = bitcast %swift.type* [[CLASSMETADATA]] to i8**
3030
// This offset must match the offset above.
31-
// FILE2: [[T_IN_CLASSMETADATA:%.*]] = getelementptr inbounds i8*, i8** [[ADDR]], i64 16
31+
// FILE2: [[T_IN_CLASSMETADATA:%.*]] = getelementptr inbounds i8*, i8** [[ADDR]], i32 16
3232
// FILE2: [[T2:%.*]] = bitcast %swift.type* [[T]] to i8*
3333
// FILE2: store i8* [[T2]], i8** [[T_IN_CLASSMETADATA]]

test/multifile/require-layout-generic-arg.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@ public func requestType<T>(_ c: Sub<T>) {
2222
// FILE2: [[CLASSMETADATA:%.*]] = call %swift.type* @swift_allocateGenericClassMetadata
2323
// FILE2: [[ADDR:%.*]] = bitcast %swift.type* [[CLASSMETADATA]] to i8**
2424
// This offset must match the offset above.
25-
// FILE2: [[T_IN_CLASSMETADATA:%.*]] = getelementptr inbounds i8*, i8** [[ADDR]], i64 16
25+
// FILE2: [[T_IN_CLASSMETADATA:%.*]] = getelementptr inbounds i8*, i8** [[ADDR]], i32 16
2626
// FILE2: [[T2:%.*]] = bitcast %swift.type* [[T]] to i8*
2727
// FILE2: store i8* [[T2]], i8** [[T_IN_CLASSMETADATA]]

0 commit comments

Comments
 (0)