File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 1
- // RUN: %target-swift-frontend -parse-as-library -emit-silgen -primary-file %s | FileCheck %s
1
+ // RUN: %target-swift-frontend -use-native-super-method - parse-as-library -emit-silgen -primary-file %s | FileCheck %s
2
2
3
3
struct Buh < T> {
4
4
var x : Int {
@@ -624,7 +624,7 @@ class D : B {
624
624
super. init ( y: y)
625
625
// CHECK: [[THIS1:%[0-9]+]] = load [[THISADDR]]
626
626
// CHECK: [[THIS1_SUP:%[0-9]+]] = upcast [[THIS1]] : ${{.*}} to $B
627
- // CHECK: [[SUPER_CTOR:%[0-9]+]] = function_ref @_TFC8lifetime1Bc{{.*}}
627
+ // CHECK: [[SUPER_CTOR:%[0-9]+]] = super_method %12 : $D, #B.init!initializer.1
628
628
// CHECK: [[Y:%[0-9]+]] = load [[YADDR]]
629
629
// CHECK: [[THIS2_SUP:%[0-9]+]] = apply [[SUPER_CTOR]]([[Y]], [[THIS1_SUP]])
630
630
// CHECK: [[THIS2:%[0-9]+]] = unchecked_ref_cast [[THIS2_SUP]] : $B to $D
You can’t perform that action at this time.
0 commit comments