]> granicus.if.org Git - clang/commitdiff
Fix thinko.
authorAnders Carlsson <andersca@mac.com>
Mon, 29 Mar 2010 01:12:13 +0000 (01:12 +0000)
committerAnders Carlsson <andersca@mac.com>
Mon, 29 Mar 2010 01:12:13 +0000 (01:12 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@99788 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGVTT.cpp

index 6b21046b4c735705c14a706d5456f4cc58f52a9d..888dcd12130f1d2b19c9f2900221c4aa6e4cd414 100644 (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();