diff options
-rw-r--r-- | lib/CodeGen/CGClass.cpp | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/lib/CodeGen/CGClass.cpp b/lib/CodeGen/CGClass.cpp index 4999d620b5..8a084926e7 100644 --- a/lib/CodeGen/CGClass.cpp +++ b/lib/CodeGen/CGClass.cpp @@ -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); |