[clang] [clang-repl] Honor `-emit-llvm` to print incremental IR (PR #217870)

Aaron Jomy via cfe-commits cfe-commits at lists.llvm.org
Fri Aug 21 12:04:18 PDT 2026


================
@@ -361,8 +367,19 @@ int main(int argc, const char **argv) {
 
   bool HasError = false;
 
+  auto ProcessInput = [&](llvm::StringRef Input) -> llvm::Error {
+    if (!EmitLLVMIR)
+      return Interp->ParseAndExecute(Input);
+    auto PTU = Interp->Parse(Input);
----------------
aaronj0 wrote:

Right, addressed by your following comment this is now taken care of when `ParseAndExecute` is called

https://github.com/llvm/llvm-project/pull/217870


More information about the cfe-commits mailing list