summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGClass.cpp
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2010-03-26 06:35:42 +0000
committerAnders Carlsson <andersca@mac.com>2010-03-26 06:35:42 +0000
commitaaf8acfea1d436b747170f4871c3e48e5879422f (patch)
tree8fb2ae243bb5d3c7b9f8447a5811cb9b8580823d /clang/lib/CodeGen/CGClass.cpp
parentd829eab92b1159a427df7c9cd4ca0f77abf79196 (diff)
downloadbcm5719-llvm-aaf8acfea1d436b747170f4871c3e48e5879422f.tar.gz
bcm5719-llvm-aaf8acfea1d436b747170f4871c3e48e5879422f.zip
Revert r99612 and see if it fixes self-host.
llvm-svn: 99614
Diffstat (limited to 'clang/lib/CodeGen/CGClass.cpp')
-rw-r--r--clang/lib/CodeGen/CGClass.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/clang/lib/CodeGen/CGClass.cpp b/clang/lib/CodeGen/CGClass.cpp
index 4999d620b5e..8a084926e76 100644
--- a/clang/lib/CodeGen/CGClass.cpp
+++ b/clang/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);
OpenPOWER on IntegriCloud