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;
}
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits