mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[Concurrency] Enable IsolatedDefaultValues under strict concurrency checking.
This commit is contained in:
@@ -1020,6 +1020,11 @@ static bool ParseLangArgs(LangOptions &Opts, ArgList &Args,
|
||||
Opts.StrictConcurrencyLevel = StrictConcurrency::Minimal;
|
||||
}
|
||||
|
||||
// StrictConcurrency::Complete enables all data-race safety features.
|
||||
if (Opts.StrictConcurrencyLevel == StrictConcurrency::Complete) {
|
||||
Opts.enableFeature(Feature::IsolatedDefaultValues);
|
||||
}
|
||||
|
||||
Opts.WarnImplicitOverrides =
|
||||
Args.hasArg(OPT_warn_implicit_overrides);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user