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
This commit is contained in:
Anders Carlsson 2010-03-29 02:14:35 +00:00
Родитель 64c9eca97e
Коммит 0a4a2fd5da
1 изменённых файлов: 2 добавлений и 3 удалений

Просмотреть файл

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