Skip to content

Commit 0a90143

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
1 parent 6c1a2ac commit 0a90143

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
@@ -4976,13 +4976,13 @@ bool CompilerInvocation::CreateFromArgsImpl(
49764976
Res.getCASOpts());
49774977

49784978
// BEGIN MCCAS
4979-
if (!Res.getFrontendOpts().CompilationCachingServicePath.empty())
4979+
if (!Res.getFrontendOpts().CompilationCachingServicePath.empty()) {
49804980
if (Res.getCodeGenOpts().UseCASBackend)
49814981
Diags.Report(diag::err_fe_incompatible_option_with_remote_cache)
49824982
<< "-fcas-backend";
4983-
if (Res.getFrontendOpts().WriteOutputAsCASID) {
4984-
Diags.Report(diag::err_fe_incompatible_option_with_remote_cache)
4985-
<< "-fcasid-output";
4983+
if (Res.getFrontendOpts().WriteOutputAsCASID)
4984+
Diags.Report(diag::err_fe_incompatible_option_with_remote_cache)
4985+
<< "-fcasid-output";
49864986
}
49874987
// END MCCAS
49884988

0 commit comments

Comments
 (0)