[PATCH] D126781: [CodeGen] Keep track info of lazy-emitted symbols in ModuleBuilder

Jun Zhang via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Jun 6 07:49:05 PDT 2022


junaire added inline comments.


================
Comment at: clang/lib/CodeGen/ModuleBuilder.cpp:138
+      {
+        CodeGenModule::KeepLazyEmiitedSymRAII RAIIKeeper(Builder);
+        M.reset(new llvm::Module(ExpandModuleName(ModuleName, CodeGenOpts), C));
----------------
v.g.vassilev wrote:
> Maybe we could move this call into `Initialize`.
I don't know why but moving this to `Initialize` causes a crash...


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D126781/new/

https://reviews.llvm.org/D126781



More information about the cfe-commits mailing list