diff options
author | Anders Carlsson <andersca@mac.com> | 2010-03-29 01:12:13 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2010-03-29 01:12:13 +0000 |
commit | 27d86bddfeb546d5b7fbb8b809a6d879d843e485 (patch) | |
tree | 448dd6f142390df237d86ddbfac52eb4fe5ee1b7 /clang/lib/CodeGen/CGVTT.cpp | |
parent | 5889027ccc55f68e3d00fdb144549fe71da14923 (diff) | |
download | bcm5719-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.cpp | 2 |
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(); |