[next] Add Default argument for hasFlag

llvm/llvm-project removed the default for the `Default` argument in
522712e2d241ea33575a9c7a60ad582634f04f0d. Specify it directly in the
call to `hasFlag`.
This commit is contained in:
Ben Barham
2022-06-14 14:29:34 -07:00
parent 9e03b7861e
commit dee08e0ea9

View File

@@ -607,7 +607,7 @@ static bool ParseLangArgs(LangOptions &Opts, ArgList &Args,
// Determine whether string processing is enabled
Opts.EnableExperimentalStringProcessing =
Args.hasFlag(OPT_enable_experimental_string_processing,
OPT_disable_experimental_string_processing);
OPT_disable_experimental_string_processing, /*Default=*/true);
// Add a future feature if it is not already implied by the language version.
auto addFutureFeatureIfNotImplied = [&](Feature feature) {