[cfe-commits] r99788 - /cfe/trunk/lib/CodeGen/CGVTT.cpp
Anders Carlsson
andersca at mac.com
Sun Mar 28 18:12:13 PDT 2010
Author: andersca
Date: Sun Mar 28 20:12:13 2010
New Revision: 99788
URL: http://llvm.org/viewvc/llvm-project?rev=99788&view=rev
Log:
Fix thinko.
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=99788&r1=99787&r2=99788&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGVTT.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGVTT.cpp Sun Mar 28 20:12:13 2010
@@ -166,7 +166,7 @@
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();
More information about the cfe-commits
mailing list