We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f9aef4 commit 9a3ba0eCopy full SHA for 9a3ba0e
lib/AST/ASTContext.cpp
@@ -5350,8 +5350,13 @@ SILFunctionType::SILFunctionType(
5350
"Cannot return an @noescape function type");
5351
}
5352
5353
+ bool hasIsolatedParameter = false; (void) hasIsolatedParameter;
5354
for (auto param : getParameters()) {
- (void)param;
5355
+ if (param.hasOption(SILParameterInfo::Isolated)) {
5356
+ assert(!hasIsolatedParameter &&
5357
+ "building SIL function type with multiple isolated parameters");
5358
+ hasIsolatedParameter = true;
5359
+ }
5360
assert(!isa<PackExpansionType>(param.getInterfaceType()) &&
5361
"Cannot have a pack expansion directly as a parameter");
5362
assert(param.isPack() == isa<SILPackType>(param.getInterfaceType()) &&
0 commit comments