Skip to content

Commit f0ee157

Browse files
committed
Fix test/IRGen/objc_direct.swift on targets that use objc_opt_self
rdar://70999289
1 parent 15d566d commit f0ee157

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/IRGen/objc_direct.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,13 @@ markUsed(Bar.directClassMethod())
4040
// NOTE: The class must be realized before calling objc_direct class methods, even if
4141
// Swift avoids explicit class realization before calling regular class methods.
4242
// CHECK: [[R0:%.*]] = load %objc_class*, %objc_class** @"OBJC_CLASS_REF_$_Bar"
43-
// CHECK: [[R1:%.*]] = call %objc_class* @swift_getInitializedObjCClass(%objc_class* [[R0]])
43+
// CHECK: [[R1:%.*]] = call %objc_class* @{{(swift_getInitializedObjCClass|objc_opt_self)}}(%objc_class* [[R0]])
4444
// CHECK: [[R2:%.*]] = bitcast %objc_class* [[R1]] to i8*
4545
// CHECK: call {{.*}} @"\01+[Bar directClassMethod]"(i8* [[R2]], i8* undef)
4646

4747
markUsed(Bar.directClassMethod2())
4848
// CHECK: [[R3:%.*]] = load %objc_class*, %objc_class** @"OBJC_CLASS_REF_$_Bar"
49-
// CHECK: [[R4:%.*]] = call %objc_class* @swift_getInitializedObjCClass(%objc_class* [[R3]])
49+
// CHECK: [[R4:%.*]] = call %objc_class* @{{(swift_getInitializedObjCClass|objc_opt_self)}}(%objc_class* [[R3]])
5050
// CHECK: [[R5:%.*]] = bitcast %objc_class* [[R4]] to i8*
5151
// CHECK: call {{.*}} @"\01+[Bar directClassMethod2]"(i8* [[R5]], i8* undef)
5252

0 commit comments

Comments
 (0)