summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGVTT.cpp
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2010-03-29 01:12:13 +0000
committerAnders Carlsson <andersca@mac.com>2010-03-29 01:12:13 +0000
commit27d86bddfeb546d5b7fbb8b809a6d879d843e485 (patch)
tree448dd6f142390df237d86ddbfac52eb4fe5ee1b7 /clang/lib/CodeGen/CGVTT.cpp
parent5889027ccc55f68e3d00fdb144549fe71da14923 (diff)
downloadbcm5719-llvm-27d86bddfeb546d5b7fbb8b809a6d879d843e485.tar.gz
bcm5719-llvm-27d86bddfeb546d5b7fbb8b809a6d879d843e485.zip
Fix thinko.
llvm-svn: 99788
Diffstat (limited to 'clang/lib/CodeGen/CGVTT.cpp')
-rw-r--r--clang/lib/CodeGen/CGVTT.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGVTT.cpp b/clang/lib/CodeGen/CGVTT.cpp
index 6b21046b4c7..888dcd12130 100644
--- a/clang/lib/CodeGen/CGVTT.cpp
+++ b/clang/lib/CodeGen/CGVTT.cpp
@@ -166,7 +166,7 @@ void VTTBuilder::AddVTablePointer(BaseSubobject Base, llvm::Constant *VTable,
const CXXRecordDecl *VTableClass,
const AddressPointsMapTy& AddressPoints) {
// Store the vtable pointer index if we're generating the primary VTT.
- if (Base.getBase() == MostDerivedClass) {
+ if (VTableClass == MostDerivedClass) {
assert(!SecondaryVirtualPointerIndices.count(Base) &&
"A virtual pointer index already exists for this base subobject!");
SecondaryVirtualPointerIndices[Base] = VTTComponents.size();
OpenPOWER on IntegriCloud