Fix thinko.

llvm-svn: 99788
This commit is contained in:
Anders Carlsson 2010-03-29 01:12:13 +00:00
parent 5889027ccc
commit 27d86bddfe
1 changed files with 1 additions and 1 deletions

View File

@ -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();