diff options
author | Anders Carlsson <andersca@mac.com> | 2010-03-29 01:12:13 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2010-03-29 01:12:13 +0000 |
commit | 80faf6986c667ca0f7e8d665f8aa104c8e2fa105 (patch) | |
tree | 5dc9f8a116b4aac534d9853f8df2c2f143147b99 /lib/CodeGen/CGVTT.cpp | |
parent | c83f1061fedc223ad661e25337cc853f54671d8a (diff) |
Fix thinko.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@99788 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGVTT.cpp')
-rw-r--r-- | lib/CodeGen/CGVTT.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/CGVTT.cpp b/lib/CodeGen/CGVTT.cpp index 6b21046b4c..888dcd1213 100644 --- a/lib/CodeGen/CGVTT.cpp +++ b/lib/CodeGen/CGVTT.cpp @@ -166,7 +166,7 @@ void VTTBuilder::AddVTablePointer(BaseSubobject Base, llvm::Constant *VTable, const CXXRecordDecl *VTableClass, const AddressPointsMapTy& AddressPoints) { // Store the vtable pointer index if we're generating the primary VTT. - if (Base.getBase() == MostDerivedClass) { + if (VTableClass == MostDerivedClass) { assert(!SecondaryVirtualPointerIndices.count(Base) && "A virtual pointer index already exists for this base subobject!"); SecondaryVirtualPointerIndices[Base] = VTTComponents.size(); |