diff options
author | Anders Carlsson <andersca@mac.com> | 2010-03-29 02:14:35 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2010-03-29 02:14:35 +0000 |
commit | 0a4a2fd5da5312a0dbc98198a49928c852180411 (patch) | |
tree | 65cf9e4df512b54593ffa2cbdd81fd3b6d51a051 /lib/CodeGen/CGVTT.cpp | |
parent | 64c9eca97e06d80960d8782769661904e261ac29 (diff) |
Use the newly added function in the VTT builder.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@99799 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGVTT.cpp')
-rw-r--r-- | lib/CodeGen/CGVTT.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/CodeGen/CGVTT.cpp b/lib/CodeGen/CGVTT.cpp index 888dcd1213..cdc8133c12 100644 --- a/lib/CodeGen/CGVTT.cpp +++ b/lib/CodeGen/CGVTT.cpp @@ -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; |