================
@@ -1849,6 +1849,9 @@ void CGOpenMPRuntime::emitAndRegisterVTable(CodeGenModule
&CGM,
CGM.EmitVTable(CXXRecord);
CodeGenVTables VTables = CGM.getVTables();
llvm::GlobalVariable *VTablesAddr = VTables.GetAddrOfVTable(CXXRecord);
+ // Must set VTables to weak since we're emitting them in multiple TUs now
+ if (VTablesAddr->hasExternalLinkage())
+ VTablesAddr->setLinkage(llvm::GlobalValue::WeakODRLinkage);
----------------
alexey-bataev wrote:
Move after the assertion
https://github.com/llvm/llvm-project/pull/200942
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits