[Sema] @_spiOnly needs to be enabled with a flag

This commit is contained in:
Alexis Laferrière
2022-08-30 11:26:46 -07:00
parent aaaef3411e
commit b680084748
6 changed files with 37 additions and 0 deletions

View File

@@ -721,6 +721,8 @@ static bool ParseLangArgs(LangOptions &Opts, ArgList &Args,
}
}
Opts.EnableSPIOnlyImports = Args.hasArg(OPT_experimental_spi_only_imports);
if (Opts.EnableSwift3ObjCInference) {
if (const Arg *A = Args.getLastArg(
OPT_warn_swift3_objc_inference_minimal,