================
@@ -349,7 +349,13 @@ Interpreter::Interpreter(std::unique_ptr<CompilerInstance> 
Instance,
   if (ErrOut)
     return;
 
-  CI->ExecuteAction(*Act);
+  if (!CI->ExecuteAction(*Act) || CI->getDiagnostics().hasErrorOccurred()) {
----------------
jeaye wrote:

Yeah, that's a fair point. I have added the same change on the CUDA side.

Thanks for taking a look!

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

Reply via email to