[cfe-commits] r99799 - /cfe/trunk/lib/CodeGen/CGVTT.cpp
Anders Carlsson
andersca at mac.com
Sun Mar 28 19:14:35 PDT 2010
Author: andersca
Date: Sun Mar 28 21:14:35 2010
New Revision: 99799
URL: http://llvm.org/viewvc/llvm-project?rev=99799&view=rev
Log:
Use the newly added function in the VTT builder.
Modified:
cfe/trunk/lib/CodeGen/CGVTT.cpp
Modified: cfe/trunk/lib/CodeGen/CGVTT.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGVTT.cpp?rev=99799&r1=99798&r2=99799&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGVTT.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGVTT.cpp Sun Mar 28 21:14:35 2010
@@ -183,9 +183,8 @@
// 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;
More information about the cfe-commits
mailing list