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

Eli Friedman via cfe-commits cfe-commits at lists.llvm.org
Tue Jun 11 20:33:10 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())
----------------
efriedma-quic wrote:

I think this is redundant?

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


More information about the cfe-commits mailing list