Open llvmbot opened 14 years ago
We've had to remove this optimization in r103741; see the comment in that commit. We can revisit this optimization later.
Fixed in 101757.
Created an attachment (id=4663) [details] rebased patch
--- a/lib/CodeGen/CodeGenModule.cpp +++ b/lib/CodeGen/CodeGenModule.cpp @@ -314,7 +314,15 @@ GetLinkageForFunction(ASTContext &Context, const FunctionDecl *FD, if (FD->getTemplateSpecializationKind() == TSK_ExplicitInstantiationDeclaration) return CodeGenModule::GVA_C99Inline;
The RD->isDynamicClass() check is redundant.
Otherwise, this patch looks good. Thanks!
Extended Description
Given the translation unit
we currently produce
it should probably be available_externally. Given that the function is virtual and we know we will have a vtable in some other translation unit, we can produce this one as available_externally.