[clang] [clang-rel] Clone the llvm::Modules to avoid invalid memory access. (PR #89031)
Vassil Vassilev via cfe-commits
cfe-commits at lists.llvm.org
Wed Apr 17 00:34:28 PDT 2024
================
@@ -73,7 +74,15 @@ llvm::Error IncrementalExecutor::addModule(PartialTranslationUnit &PTU) {
Jit->getMainJITDylib().createResourceTracker();
ResourceTrackers[&PTU] = RT;
- return Jit->addIRModule(RT, {std::move(PTU.TheModule), TSCtx});
----------------
vgvassilev wrote:
Even if we are attaching a resource tracker (`RT`) the Jit decides to destroy the `ThreadSafeModule`.
https://github.com/llvm/llvm-project/pull/89031
More information about the cfe-commits
mailing list