Skip to content

Commit 719fbcb

Browse files
Fix mismerge with remote cache path error
When using the -fcasid-output option, even if a remote cache path is not passed we can still see the error: error: '-fcasid-output' is incompatible with remote caching backend This patch fixes that bug (cherry picked from commit 0a90143)
1 parent 36d2b5c commit 719fbcb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

clang/lib/Frontend/CompilerInvocation.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5134,13 +5134,13 @@ bool CompilerInvocation::CreateFromArgsImpl(
51345134
Res.getCASOpts());
51355135

51365136
// BEGIN MCCAS
5137-
if (!Res.getFrontendOpts().CompilationCachingServicePath.empty())
5137+
if (!Res.getFrontendOpts().CompilationCachingServicePath.empty()) {
51385138
if (Res.getCodeGenOpts().UseCASBackend)
51395139
Diags.Report(diag::err_fe_incompatible_option_with_remote_cache)
51405140
<< "-fcas-backend";
5141-
if (Res.getFrontendOpts().WriteOutputAsCASID) {
5142-
Diags.Report(diag::err_fe_incompatible_option_with_remote_cache)
5143-
<< "-fcasid-output";
5141+
if (Res.getFrontendOpts().WriteOutputAsCASID)
5142+
Diags.Report(diag::err_fe_incompatible_option_with_remote_cache)
5143+
<< "-fcasid-output";
51445144
}
51455145
// END MCCAS
51465146

0 commit comments

Comments
 (0)