[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
Mon Jun 10 23:38:01 PDT 2024
================
@@ -3219,7 +3219,8 @@ void CodeGenModule::EmitVTablesOpportunistically() {
for (const CXXRecordDecl *RD : OpportunisticVTables) {
assert(getVTables().isVTableExternal(RD) &&
"This queue should only contain external vtables");
- if (getCXXABI().canSpeculativelyEmitVTable(RD))
+ if (getCXXABI().canSpeculativelyEmitVTable(RD) &&
+ !RD->shouldEmitInExternalSource())
----------------
ChuanqiXu9 wrote:
Done
https://github.com/llvm/llvm-project/pull/75912
More information about the cfe-commits
mailing list