mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[SIL] Add flag to SILFunction to indicate async.
Includes boilerplate to parse and print as well as to serialize and deserialize.
This commit is contained in:
@@ -217,6 +217,10 @@ SILFunction *SILFunctionBuilder::getOrCreateFunction(
|
||||
}
|
||||
addFunctionAttributes(F, decl->getAttrs(), mod, getOrCreateDeclaration,
|
||||
constant);
|
||||
|
||||
if (auto *funcDecl = dyn_cast<AbstractFunctionDecl>(decl)) {
|
||||
F->setAsync(funcDecl->hasAsync());
|
||||
}
|
||||
}
|
||||
|
||||
return F;
|
||||
|
||||
Reference in New Issue
Block a user