================
@@ -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()))
----------------
andykaylor wrote:

That sounds good. I wouldn't want to try to enumerate all the valid input 
types, but checking the job action sounds right.

https://github.com/llvm/llvm-project/pull/187729
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to