]> granicus.if.org Git - clang/commitdiff
Use the newly added function in the VTT builder.
authorAnders Carlsson <andersca@mac.com>
Mon, 29 Mar 2010 02:14:35 +0000 (02:14 +0000)
committerAnders Carlsson <andersca@mac.com>
Mon, 29 Mar 2010 02:14:35 +0000 (02:14 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@99799 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGVTT.cpp

index 888dcd12130f1d2b19c9f2900221c4aa6e4cd414..cdc8133c12550c8dc24f3d40e629942c755cb775 100644 (file)
@@ -183,9 +183,8 @@ void VTTBuilder::AddVTablePointer(BaseSubobject Base, llvm::Constant *VTable,
     // address points.
     AddressPoint = AddressPoints.lookup(Base);
   } else {
-    AddressPoint = 
-      (*this->AddressPoints[VTableClass])[std::make_pair(Base.getBase(), 
-                                                         Base.getBaseOffset())];
+    // Just get the address point for the regular vtable.
+    AddressPoint = CGM.getVTables().getAddressPoint(Base, VTableClass);
   }
 
   if (!AddressPoint) AddressPoint = 0;