mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[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:
@@ -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 |=
|
||||
|
||||
Reference in New Issue
Block a user