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
2
2
3
3
var zero : Int = 0
4
4
@@ -638,7 +638,7 @@ class rdar16151899Derived : rdar16151899Base {
638
638
override init ( ) {
639
639
super. init ( )
640
640
// 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
642
642
643
643
// This should not be a direct access, it should call the setter in the
644
644
// base.
@@ -700,8 +700,7 @@ class DerivedProperty : BaseProperty {
700
700
// CHECK: sil hidden @_TFC10properties15DerivedProperty24super_property_reference
701
701
// CHECK: bb0(%0 : $DerivedProperty):
702
702
// 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
705
704
// CHECK: apply [[FN]]([[BASEPTR]]) : $@convention(method) (@guaranteed BaseProperty) -> Int // user: %7
706
705
707
706
You can’t perform that action at this time.
0 commit comments