mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Merge branch 'main' into cdecl-global-function-checking
This commit is contained in:
@@ -8756,14 +8756,6 @@ 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)) {
|
||||
@@ -8948,6 +8940,12 @@ void ParamDecl::setTypeRepr(TypeRepr *repr) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (auto *callerIsolated =
|
||||
dyn_cast<CallerIsolatedTypeRepr>(unwrappedType)) {
|
||||
setCallerIsolated(true);
|
||||
unwrappedType = callerIsolated->getBase();
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -11042,6 +11040,9 @@ AccessorDecl *AccessorDecl::createParsed(
|
||||
if (subscriptParam->isSending())
|
||||
param->setSending();
|
||||
|
||||
if (subscriptParam->isCallerIsolated())
|
||||
param->setCallerIsolated();
|
||||
|
||||
newParams.push_back(param);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user