File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 1- // RUN: %target-swift-frontend -parse-as-library -emit-silgen -disable-objc-attr-requires-foundation-module %s | FileCheck %s
1+ // RUN: %target-swift-frontend -use-native-super-method -parse-as-library -emit-silgen -disable-objc-attr-requires-foundation-module %s | FileCheck %s
22
33var zero : Int = 0
44
@@ -638,7 +638,7 @@ class rdar16151899Derived : rdar16151899Base {
638638 override init ( ) {
639639 super. init ( )
640640 // CHECK: upcast {{.*}} : $rdar16151899Derived to $rdar16151899Base
641- // CHECK-NEXT: function_ref properties. rdar16151899Base.init
641+ // CHECK-NEXT: super_method {{%[0-9]+}} : $rdar16151899Derived, # rdar16151899Base.init!initializer.1
642642
643643 // This should not be a direct access, it should call the setter in the
644644 // base.
@@ -700,8 +700,7 @@ class DerivedProperty : BaseProperty {
700700// CHECK: sil hidden @_TFC10properties15DerivedProperty24super_property_reference
701701// CHECK: bb0(%0 : $DerivedProperty):
702702// CHECK: [[BASEPTR:%[0-9]+]] = upcast %0 : $DerivedProperty to $BaseProperty
703- // CHECK: // function_ref properties.BaseProperty.x.getter
704- // CHECK: [[FN:%[0-9]+]] = function_ref @_TFC10properties12BasePropertyg1x
703+ // CHECK: [[FN:%[0-9]+]] = super_method %0 : $DerivedProperty, #BaseProperty.x!getter.1
705704// CHECK: apply [[FN]]([[BASEPTR]]) : $@convention(method) (@guaranteed BaseProperty) -> Int // user: %7
706705
707706
You can’t perform that action at this time.
0 commit comments