Merge branch 'main' into cdecl-global-function-checking

This commit is contained in:
Alexis Laferrière
2025-04-16 11:19:37 -07:00
committed by GitHub
342 changed files with 10898 additions and 3434 deletions

View File

@@ -1739,8 +1739,7 @@ bool swift::addNonIsolatedToSynthesized(NominalTypeDecl *nominal,
return false;
ASTContext &ctx = nominal->getASTContext();
value->getAttrs().add(
new (ctx) NonisolatedAttr(/*unsafe=*/false, /*implicit=*/true));
value->getAttrs().add(NonisolatedAttr::createImplicit(ctx));
return true;
}