mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[caller-isolation] Teach Sema how to handle isolation of explicit @execution({concurrent,caller}).
This commit is contained in:
@@ -8471,6 +8471,14 @@ void VarDecl::emitLetToVarNoteIfSimple(DeclContext *UseDC) const {
|
||||
}
|
||||
}
|
||||
|
||||
std::optional<ExecutionKind>
|
||||
AbstractFunctionDecl::getExecutionBehavior() const {
|
||||
auto *attr = getAttrs().getAttribute<ExecutionAttr>();
|
||||
if (!attr)
|
||||
return {};
|
||||
return attr->getBehavior();
|
||||
}
|
||||
|
||||
clang::PointerAuthQualifier VarDecl::getPointerAuthQualifier() const {
|
||||
if (auto *clangDecl = getClangDecl()) {
|
||||
if (auto *valueDecl = dyn_cast<clang::ValueDecl>(clangDecl)) {
|
||||
|
||||
Reference in New Issue
Block a user