forked from OSchip/llvm-project
Revert r99612 and see if it fixes self-host.
llvm-svn: 99614
This commit is contained in:
parent
d829eab92b
commit
aaf8acfea1
|
@ -1601,13 +1601,6 @@ void CodeGenFunction::InitializeVtablePtrs(BaseSubobject Base,
|
|||
|
||||
CXXRecordDecl *BaseDecl
|
||||
= cast<CXXRecordDecl>(I->getType()->getAs<RecordType>()->getDecl());
|
||||
|
||||
// We don't need to initialize vtable pointers for primary bases, unless
|
||||
// they're virtual.
|
||||
if (!Layout.getPrimaryBaseWasVirtual() &&
|
||||
Layout.getPrimaryBase() == BaseDecl)
|
||||
continue;
|
||||
|
||||
uint64_t BaseOffset = Base.getBaseOffset() +
|
||||
Layout.getBaseClassOffset(BaseDecl);
|
||||
|
||||
|
|
Loading…
Reference in New Issue