[clang] [clang-repl] Stop interpreter init on action failure (PR #217147)
Vassil Vassilev via cfe-commits
cfe-commits at lists.llvm.org
Sun Aug 23 23:04:36 PDT 2026
================
@@ -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
More information about the cfe-commits
mailing list