mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[CoroutineAccessors] Add flag to observe errors.
Temporarily allow the legacy behavior of allowing caller coroutine accessors to observe errors (i.e. by executing no code after the yield if the caller threw an error) behind the CoroutineAccessorsUnwindOnCallerError flag.
This commit is contained in:
@@ -296,6 +296,7 @@ static bool usesFeatureAllowUnsafeAttribute(Decl *decl) {
|
||||
UNINTERESTING_FEATURE(WarnUnsafe)
|
||||
UNINTERESTING_FEATURE(SafeInterop)
|
||||
UNINTERESTING_FEATURE(AssumeResilientCxxTypes)
|
||||
UNINTERESTING_FEATURE(CoroutineAccessorsUnwindOnCallerError)
|
||||
|
||||
bool swift::usesFeatureIsolatedDeinit(const Decl *decl) {
|
||||
if (auto cd = dyn_cast<ClassDecl>(decl)) {
|
||||
|
||||
Reference in New Issue
Block a user