mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Merge pull request #27571 from slavapestov/circular-validation-cleanups-5
Circular validation cleanups, part 5
This commit is contained in:
@@ -1376,10 +1376,11 @@ void LoadableStorageAllocation::insertIndirectReturnArgs() {
|
||||
|
||||
auto &ctx = pass.F->getModule().getASTContext();
|
||||
auto var = new (ctx) ParamDecl(
|
||||
ParamDecl::Specifier::InOut, SourceLoc(), SourceLoc(),
|
||||
SourceLoc(), SourceLoc(),
|
||||
ctx.getIdentifier("$return_value"), SourceLoc(),
|
||||
ctx.getIdentifier("$return_value"),
|
||||
pass.F->getDeclContext());
|
||||
var->setSpecifier(ParamSpecifier::InOut);
|
||||
pass.F->begin()->insertFunctionArgument(
|
||||
0, newResultStorageType.getAddressType(), ValueOwnershipKind::Any, var);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user