================ @@ -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()) ---------------- efriedma-quic wrote:
Can you sink this check into canSpeculativelyEmitVTable()? If we're not going to do available_externally vtables, I think the other callers of canSpeculativelyEmitVTable also want this check. https://github.com/llvm/llvm-project/pull/75912 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits