[cfe-commits] r97339 - /cfe/trunk/lib/CodeGen/CGVtable.cpp
Anders Carlsson
andersca at mac.com
Sat Feb 27 11:51:04 PST 2010
Author: andersca
Date: Sat Feb 27 13:51:04 2010
New Revision: 97339
URL: http://llvm.org/viewvc/llvm-project?rev=97339&view=rev
Log:
Make sure to insert the primary base in the set :)
Modified:
cfe/trunk/lib/CodeGen/CGVtable.cpp
Modified: cfe/trunk/lib/CodeGen/CGVtable.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGVtable.cpp?rev=97339&r1=97338&r2=97339&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGVtable.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGVtable.cpp Sat Feb 27 13:51:04 2010
@@ -1512,6 +1512,9 @@
"Primary base should always be at offset 0!");
}
+ if (!PrimaryBases.insert(PrimaryBase))
+ assert(false && "Found a duplicate primary base!");
+
RD = PrimaryBase;
}
More information about the cfe-commits
mailing list