[clang] [clang-repl] Keep the first llvm::Module empty to avoid invalid memory access. (PR #89031)

Vassil Vassilev via cfe-commits cfe-commits at lists.llvm.org
Fri Apr 19 00:58:43 PDT 2024


vgvassilev wrote:

After an offline discussion with @lhames, we have a more simplified approach which should consume less memory. Now we just keep the first llvm::Module empty and make sure it's used only for read-only purposes such as computing the llvm::DataLayout out of it in CodeGen.

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


More information about the cfe-commits mailing list