[clang] [C++20] [Modules] [Itanium ABI] Generate the vtable in the module unit of dynamic classes (PR #75912)

Chuanqi Xu via cfe-commits cfe-commits at lists.llvm.org
Wed Jun 12 02:32:54 PDT 2024


================
@@ -1227,7 +1241,8 @@ void CodeGenModule::EmitDeferredVTables() {
 #endif
 
   for (const CXXRecordDecl *RD : DeferredVTables)
-    if (shouldEmitVTableAtEndOfTranslationUnit(*this, RD))
+    if (shouldEmitVTableAtEndOfTranslationUnit(*this, RD) &&
+        !RD->shouldEmitInExternalSource())
----------------
ChuanqiXu9 wrote:

Yes, done.

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


More information about the cfe-commits mailing list