Skip to content

tests: adapt a SIL test to the new block argument ownership syntax #18367

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 31, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions test/IRGen/class_isa_pointers_armv7k_watchos.sil
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ sil_vtable Purebred {}
// CHECK: [[VTABLE:%.*]] = bitcast %swift.type* [[ISA]]
// CHECK: getelementptr inbounds {{.*}} [[VTABLE]]
sil @purebred_method : $@convention(thin) (@owned Purebred) -> () {
entry(%0 : $Purebred):
entry(%0 : @owned $Purebred):
%m = class_method %0 : $Purebred, #Purebred.method!1 : (Purebred) -> () -> (), $@convention(method) (@guaranteed Purebred) -> ()
%z = apply %m(%0) : $@convention(method) (@guaranteed Purebred) -> ()
return %z : $()
Expand All @@ -45,7 +45,7 @@ sil_vtable Mongrel {}
// CHECK: [[VTABLE:%.*]] = bitcast %swift.type* [[ISA]]
// CHECK: getelementptr inbounds {{.*}} [[VTABLE]]
sil @mongrel_method : $@convention(thin) (@owned Mongrel) -> () {
entry(%0 : $Mongrel):
entry(%0 : @owned $Mongrel):
%m = class_method %0 : $Mongrel, #Mongrel.method!1 : (Mongrel) -> () -> (), $@convention(method) (@guaranteed Mongrel) -> ()
%z = apply %m(%0) : $@convention(method) (@guaranteed Mongrel) -> ()
return %z : $()
Expand All @@ -54,14 +54,14 @@ entry(%0 : $Mongrel):
// ObjC stubs expected by ObjC metadata emission

sil private @$S33class_isa_pointers_armv7k_watchos7MongrelC6methodyyFTo : $@convention(objc_method) (Purebred) -> () {
entry(%0 : $Purebred):
entry(%0 : @unowned $Purebred):
unreachable
}
sil private @$S33class_isa_pointers_armv7k_watchos7MongrelC7bellsOnACSgSi_tcfcTo : $@convention(objc_method) (Int, Purebred) -> () {
entry(%0 : $Int, %1 : $Purebred):
entry(%0 : @trivial $Int, %1 : @unowned $Purebred):
unreachable
}
sil private @$S33class_isa_pointers_armv7k_watchos7MongrelCACycfcTo : $@convention(objc_method) (Purebred) -> () {
entry(%0 : $Purebred):
entry(%0 : @unowned $Purebred):
unreachable
}