Skip to content

Commit 8ee34b7

Browse files
Add an else statement
1 parent 063e92a commit 8ee34b7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/Frontend/CompilerInvocation.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -956,8 +956,9 @@ static bool ParseDiagnosticArgs(DiagnosticOptions &Opts, ArgList &Args,
956956

957957
Diags.diagnose(SourceLoc(), diag::warning_invalid_locale_code,
958958
availableLocaleCodes);
959+
} else {
960+
Opts.LocalizationCode = localeCode;
959961
}
960-
Opts.LocalizationCode = localeCode;
961962
}
962963
if (Arg *A = Args.getLastArg(OPT_localization_path)) {
963964
if (!llvm::sys::fs::exists(A->getValue())) {

0 commit comments

Comments
 (0)