A bunch more thunk fixes from misc testing.
(Yes, I do intend to commit some tests for this.) llvm-svn: 90818
This commit is contained in:
@@ -625,7 +625,13 @@ void CodeGenModule::EmitGlobalDefinition(GlobalDecl GD) {
|
||||
getVtableInfo().MaybeEmitVtable(GD);
|
||||
if (MD->isVirtual() && MD->isOutOfLine() &&
|
||||
(!isa<CXXDestructorDecl>(D) || GD.getDtorType() != Dtor_Base)) {
|
||||
BuildThunksForVirtual(GD);
|
||||
if (isa<CXXDestructorDecl>(D)) {
|
||||
GlobalDecl CanonGD(cast<CXXDestructorDecl>(D->getCanonicalDecl()),
|
||||
GD.getDtorType());
|
||||
BuildThunksForVirtual(CanonGD);
|
||||
} else {
|
||||
BuildThunksForVirtual(MD->getCanonicalDecl());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user