File tree Expand file tree Collapse file tree 2 files changed +0
-8
lines changed Expand file tree Collapse file tree 2 files changed +0
-8
lines changed Original file line number Diff line number Diff line change @@ -390,9 +390,6 @@ class ApplySite {
390
390
case SILArgumentConvention::Pack_Inout:
391
391
return conv;
392
392
case SILArgumentConvention::Direct_Owned:
393
- assert (!pai->isOnStack () &&
394
- " on-stack closures do not support owned arguments" );
395
- return conv;
396
393
case SILArgumentConvention::Direct_Unowned:
397
394
case SILArgumentConvention::Direct_Guaranteed:
398
395
return pai->isOnStack () ? SILArgumentConvention::Direct_Guaranteed
Original file line number Diff line number Diff line change @@ -1956,11 +1956,6 @@ class SILVerifier : public SILVerifierBase<SILVerifier> {
1956
1956
unsigned appliedArgStartIdx =
1957
1957
substConv.getNumSILArguments () - PAI->getNumArguments ();
1958
1958
for (auto p : llvm::enumerate (PAI->getArguments ())) {
1959
- if (PAI->isOnStack ()) {
1960
- require (
1961
- substConv.getSILArgumentConvention (appliedArgStartIdx + p.index ()),
1962
- " on-stack closures do not support owned arguments" );
1963
- }
1964
1959
requireSameType (
1965
1960
p.value ()->getType (),
1966
1961
substConv.getSILArgumentType (appliedArgStartIdx + p.index (),
You can’t perform that action at this time.
0 commit comments