[Frontend] Swift 6: Enable checked continuations when suspending for an async ObjC calls

Enables `-checked-async-objc-bridging` flag by default starting
from swift 6 language mode to provide enhanced debugging and
runtime checking for the correct usage of continuations passed
in a call to ObjC from Swift.
This commit is contained in:
Pavel Yaskevich
2024-05-30 17:55:59 -07:00
parent 2a75075aa0
commit b5b4cba038
3 changed files with 5 additions and 2 deletions

View File

@@ -1572,6 +1572,8 @@ static bool ParseLangArgs(LangOptions &Opts, ArgList &Args,
A->getAsString(Args), A->getValue());
HadError = true;
}
} else if (Opts.isSwiftVersionAtLeast(6)) {
Opts.UseCheckedAsyncObjCBridging = true;
}
Opts.DisableDynamicActorIsolation |=