[clang] [clang-repl] Drop CodeGen module when an input has parse errors (PR #169989)

Anutosh Bhat via cfe-commits cfe-commits at lists.llvm.org
Sat Nov 29 04:15:05 PST 2025


================
@@ -74,6 +74,8 @@ class IncrementalAction : public WrapperFrontendAction {
 
   /// Generate an LLVM module for the most recent parsed input.
   std::unique_ptr<llvm::Module> GenModule();
+
+  void discardCurrentCodeGenModule();
----------------
anutosh491 wrote:

Can add a comment explaining the purpose behind the function (just like we do for above functions) if needed !

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


More information about the cfe-commits mailing list