Skip to content

Commit 178ad5c

Browse files
committed
Update test/SILGen/auto_closures.swift for native super dispatch
NFC.
1 parent d1c315c commit 178ad5c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/SILGen/auto_closures.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-stdlib -emit-silgen %s | FileCheck %s
1+
// RUN: %target-swift-frontend -use-native-super-method -parse-stdlib -emit-silgen %s | FileCheck %s
22

33
struct Bool {}
44
var false_ = Bool()
@@ -40,7 +40,7 @@ public class Sub : Base {
4040
// CHECK: }
4141

4242
// CHECK-LABEL: sil shared [transparent] @_TFFC13auto_closures3Subg1xVS_4Boolu_KT_S1_ : $@convention(thin) (@owned Sub) -> Bool {
43-
// CHECK: [[SUPER:%.*]] = function_ref @_TFC13auto_closures4Baseg1xVS_4Bool
43+
// CHECK: [[SUPER:%[0-9]+]] = super_method %{{[0-9]+}} : $Sub, #Base.x!getter.1 : Base -> () -> Bool , $@convention(method) (@guaranteed Base) -> Bool
4444
// CHECK: [[RET:%.*]] = apply [[SUPER]]({{%.*}})
4545
// CHECK: return [[RET]]
4646
override var x: Bool { return call_auto_closure(super.x) }

0 commit comments

Comments
 (0)