Skip to content

Commit 52961c9

Browse files
committed
Try to fix windows/linux
1 parent a44b36c commit 52961c9

File tree

3 files changed

+5
-9
lines changed

3 files changed

+5
-9
lines changed

test/IRGen/async/class_resilience.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ open class MyBaseClass<T> {
4444
// CHECK-LABEL: define {{(dllexport )?}}{{(protected )?}}swift{{(tail)?}}cc void @"$s16class_resilience14callsAwaitableyx010resilient_A09BaseClassCyxGYalF"(ptr noalias nocapture %0, ptr swiftasync %1{{.*}})
4545
// CHECK-DIRECT: ptr @"$s15resilient_class9BaseClassC4waitxyYaFTjTu"
4646
// CHECK-INDIRECT: [[LOAD:%[0-9]+]] = load ptr, ptr inttoptr (i64 and (i64 add (i64 ptrtoint (ptr @"\01__imp_$s15resilient_class9BaseClassC4waitxyYaFTjTu" to i64), i64 1), i64 -2) to ptr), align {{4|8}}
47-
// CHECK-INDIRECT-NEXT: %14 = select i1 icmp eq (i64 and (i64 add (i64 ptrtoint (ptr @"\01__imp_$s15resilient_class9BaseClassC4waitxyYaFTjTu" to i64), i64 1), i64 1), i64 0),
47+
// CHECK-INDIRECT-NEXT: select i1 icmp eq (i64 and (i64 add (i64 ptrtoint (ptr @"\01__imp_$s15resilient_class9BaseClassC4waitxyYaFTjTu" to i64), i64 1), i64 1), i64 0),
4848
// CHECK-INDIRECT-SAME: ptr inttoptr (i64 add (i64 ptrtoint (ptr @"\01__imp_$s15resilient_class9BaseClassC4waitxyYaFTjTu" to i64), i64 1) to ptr),
4949
// CHECK-INDIRECT-SAME: ptr [[LOAD]]
5050
// CHECK: ret void

test/IRGen/protocol_with_superclass.sil

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,7 @@ bb0(%0 : $Concrete, %1 : $SuperProto, %2 : $SuperProto & Concrete, %3 : $ProtoRe
4747
strong_release %6 : $SubProto
4848

4949
// CHECK-objc: [[ISA:%.*]] = call ptr @swift_getObjectType(ptr %{{[0-9]+}})
50-
// CHECK-native: [[ISA_ADDR:%.*]] = bitcast ptr %1
51-
// CHECK-native-NEXT: [[ISA:%.*]] = load ptr, ptr [[ISA_ADDR]]
50+
// CHECK-native-NEXT: [[ISA:%.*]] = load ptr, ptr %1
5251
// CHECK-NEXT: [[RESULT:%.*]] = call { ptr, ptr } @dynamic_cast_existential_1_unconditional(ptr %1, ptr [[ISA]], {{.*}} @"$s24protocol_with_superclass17ProtoRefinesClassMp"
5352
// CHECK-NEXT: [[FIRST:%.*]] = extractvalue { ptr, ptr } [[RESULT]], 0
5453
%7 = unconditional_checked_cast %1 : $SuperProto to ProtoRefinesClass
@@ -57,8 +56,7 @@ bb0(%0 : $Concrete, %1 : $SuperProto, %2 : $SuperProto & Concrete, %3 : $ProtoRe
5756
strong_release %7 : $ProtoRefinesClass
5857

5958
// CHECK-objc: [[ISA:%.*]] = call ptr @swift_getObjectType(ptr %{{[0-9]+}})
60-
// CHECK-native: [[ISA_ADDR:%.*]] = bitcast ptr %1
61-
// CHECK-native-NEXT: [[ISA:%.*]] = load ptr, ptr [[ISA_ADDR]]
59+
// CHECK-native-NEXT: [[ISA:%.*]] = load ptr, ptr %1
6260
// CHECK-NEXT: [[RESULT:%.*]] = call { ptr, ptr } @dynamic_cast_existential_1_unconditional(ptr %1, ptr [[ISA]], {{.*}} @"$s24protocol_with_superclass8SubProtoMp"
6361
// CHECK-NEXT: [[FIRST:%.*]] = extractvalue { ptr, ptr } [[RESULT]], 0
6462
%8 = unconditional_checked_cast %1 : $SuperProto to SubProto

test/IRGen/protocol_with_superclass_where_clause.sil

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,7 @@ bb0(%0 : $Concrete, %1 : $SuperProto, %2 : $SuperProto & Concrete, %3 : $ProtoRe
4747
strong_release %6 : $SubProto
4848

4949
// CHECK-objc: [[ISA:%.*]] = call ptr @swift_getObjectType(ptr %{{[0-9]+}})
50-
// CHECK-native: [[ISA_ADDR:%.*]] = bitcast ptr %1
51-
// CHECK-native-NEXT: [[ISA:%.*]] = load ptr, ptr [[ISA_ADDR]]
50+
// CHECK-native-NEXT: [[ISA:%.*]] = load ptr, ptr %1
5251
// CHECK-NEXT: [[RESULT:%.*]] = call { ptr, ptr } @dynamic_cast_existential_1_unconditional(ptr %1, ptr [[ISA]], {{.*}} @"$s24protocol_with_superclass17ProtoRefinesClassMp"
5352
// CHECK-NEXT: [[FIRST:%.*]] = extractvalue { ptr, ptr } [[RESULT]], 0
5453
%7 = unconditional_checked_cast %1 : $SuperProto to ProtoRefinesClass
@@ -57,8 +56,7 @@ bb0(%0 : $Concrete, %1 : $SuperProto, %2 : $SuperProto & Concrete, %3 : $ProtoRe
5756
strong_release %7 : $ProtoRefinesClass
5857

5958
// CHECK-objc: [[ISA:%.*]] = call ptr @swift_getObjectType(ptr %{{[0-9]+}})
60-
// CHECK-native: [[ISA_ADDR:%.*]] = bitcast ptr %1
61-
// CHECK-native-NEXT: [[ISA:%.*]] = load ptr, ptr [[ISA_ADDR]]
59+
// CHECK-native-NEXT: [[ISA:%.*]] = load ptr, ptr %1
6260
// CHECK-NEXT: [[RESULT:%.*]] = call { ptr, ptr } @dynamic_cast_existential_1_unconditional(ptr %1, ptr [[ISA]], {{.*}} @"$s24protocol_with_superclass8SubProtoMp"
6361
// CHECK-NEXT: [[FIRST:%.*]] = extractvalue { ptr, ptr } [[RESULT]], 0
6462
%8 = unconditional_checked_cast %1 : $SuperProto to SubProto

0 commit comments

Comments
 (0)