summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGVTT.cpp
diff options
context:
space:
mode:
authorTimur Iskhodzhanov <timurrrr@google.com>2013-11-05 15:54:58 +0000
committerTimur Iskhodzhanov <timurrrr@google.com>2013-11-05 15:54:58 +0000
commit5877663622877127b0cfdf8230bd627271f50d9c (patch)
treeec078930ca0cb38f7dfd775bcc0f002675d16802 /clang/lib/CodeGen/CGVTT.cpp
parent41778fd28f9b6877e34dcced85deb2c6dec50b4a (diff)
downloadbcm5719-llvm-5877663622877127b0cfdf8230bd627271f50d9c.tar.gz
bcm5719-llvm-5877663622877127b0cfdf8230bd627271f50d9c.zip
Fix vbtable indices when a class shares the vbptr with a non-virtual base
llvm-svn: 194082
Diffstat (limited to 'clang/lib/CodeGen/CGVTT.cpp')
-rw-r--r--clang/lib/CodeGen/CGVTT.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CGVTT.cpp b/clang/lib/CodeGen/CGVTT.cpp
index 31beb02a52f..bfff4705889 100644
--- a/clang/lib/CodeGen/CGVTT.cpp
+++ b/clang/lib/CodeGen/CGVTT.cpp
@@ -65,8 +65,8 @@ CodeGenVTables::EmitVTTDefinition(llvm::GlobalVariable *VTT,
uint64_t AddressPoint;
if (VTTVT.getBase() == RD) {
// Just get the address point for the regular vtable.
- AddressPoint = VTContext.getVTableLayout(RD)
- .getAddressPoint(i->VTableBase);
+ AddressPoint =
+ ItaniumVTContext.getVTableLayout(RD).getAddressPoint(i->VTableBase);
assert(AddressPoint != 0 && "Did not find vtable address point!");
} else {
AddressPoint = VTableAddressPoints[i->VTableIndex].lookup(i->VTableBase);
OpenPOWER on IntegriCloud