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

I believe we should move that into a separate file static helper function to 
avoid duplicating code.

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