summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGClass.cpp
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2010-03-29 02:08:26 +0000
committerAnders Carlsson <andersca@mac.com>2010-03-29 02:08:26 +0000
commitf6f24c609b8f7877c0d8063ed87949143109c58b (patch)
tree7a74a5c2341ad0b95e092292095727c3427b43fc /clang/lib/CodeGen/CGClass.cpp
parentf91869b6196871dbd265d8b23484779521b738a3 (diff)
downloadbcm5719-llvm-f6f24c609b8f7877c0d8063ed87949143109c58b.tar.gz
bcm5719-llvm-f6f24c609b8f7877c0d8063ed87949143109c58b.zip
Cleanup, no functionality change.
llvm-svn: 99798
Diffstat (limited to 'clang/lib/CodeGen/CGClass.cpp')
-rw-r--r--clang/lib/CodeGen/CGClass.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/clang/lib/CodeGen/CGClass.cpp b/clang/lib/CodeGen/CGClass.cpp
index f6d19b4979d..dfad33cc09f 100644
--- a/clang/lib/CodeGen/CGClass.cpp
+++ b/clang/lib/CodeGen/CGClass.cpp
@@ -1584,12 +1584,7 @@ CodeGenFunction::InitializeVTablePointer(BaseSubobject Base,
// And load the address point from the VTT.
VTableAddressPoint = Builder.CreateLoad(VTT);
} else {
- const CodeGenVTables::AddrSubMap_t& AddressPoints =
- CGM.getVTables().getAddressPoints(VTableClass);
-
- uint64_t AddressPoint =
- AddressPoints.lookup(std::make_pair(Base.getBase(),
- Base.getBaseOffset()));
+ uint64_t AddressPoint = CGM.getVTables().getAddressPoint(Base, VTableClass);
VTableAddressPoint =
Builder.CreateConstInBoundsGEP2_64(VTable, 0, AddressPoint);
}
OpenPOWER on IntegriCloud