[clang] [clang-repl] : Fix clang-repl crash with --cuda flag (PR #136404)
Anutosh Bhat via cfe-commits
cfe-commits at lists.llvm.org
Fri Apr 25 03:07:55 PDT 2025
================
@@ -760,8 +787,10 @@ std::unique_ptr<llvm::Module> Interpreter::GenModule() {
return nullptr;
}
-CodeGenerator *Interpreter::getCodeGen() const {
- FrontendAction *WrappedAct = Act->getWrapped();
+CodeGenerator *Interpreter::getCodeGen(IncrementalAction *Action) const {
+ if (!Action)
+ Action = Act.get();
+ FrontendAction *WrappedAct = Action->getWrapped();
----------------
anutosh491 wrote:
Squashed the commits into 2 meaningful ones. So for the above changes (or what I mean by the latest commit) ... I am pointing to this one https://github.com/llvm/llvm-project/pull/136404/commits/e7b2d19940179d9c89a88a966f3b28fa7f956d6b
https://github.com/llvm/llvm-project/pull/136404
More information about the cfe-commits
mailing list