================
@@ -5080,7 +5080,7 @@ void Clang::ConstructJob(Compilation &C, const JobAction
&JA,
}
}
- if (Args.hasArg(options::OPT_fclangir))
+ if (Args.hasArg(options::OPT_fclangir) && !types::isLLVMIR(Input.getType()))
----------------
jsjodin wrote:
Unfortunately the passes are collapsed so that the `isa<CompileJobAction>`
fails, so the test fails and the front-end does not get the -fclangir flag. I'm
working on a different solution where the flag is always passed, but will be
treated differently depending on the input. I think there were some existing
cases where this happens.
https://github.com/llvm/llvm-project/pull/187729
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits