================
@@ -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:

Not sure, I will take a look. The compilation is done twice with CIR one for 
the host and one for the target device, but the later stages are all LLVM-IR. I 
will change this case into an error. What would the legal input types be in 
this case? I don't want to list what is not legal.

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