Skip to content

Commit c6352ae

Browse files
committed
Update test/SILGen/lifetime.swift for native super dispatch
NFC.
1 parent 8a8e4da commit c6352ae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/SILGen/lifetime.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
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
22

33
struct Buh<T> {
44
var x: Int {
@@ -624,7 +624,7 @@ class D : B {
624624
super.init(y: y)
625625
// CHECK: [[THIS1:%[0-9]+]] = load [[THISADDR]]
626626
// 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
628628
// CHECK: [[Y:%[0-9]+]] = load [[YADDR]]
629629
// CHECK: [[THIS2_SUP:%[0-9]+]] = apply [[SUPER_CTOR]]([[Y]], [[THIS1_SUP]])
630630
// CHECK: [[THIS2:%[0-9]+]] = unchecked_ref_cast [[THIS2_SUP]] : $B to $D

0 commit comments

Comments
 (0)