[cfe-commits] r90149 - /cfe/trunk/lib/CodeGen/CGVtable.cpp
Anders Carlsson
andersca at mac.com
Mon Nov 30 11:43:26 PST 2009
Author: andersca
Date: Mon Nov 30 13:43:26 2009
New Revision: 90149
URL: http://llvm.org/viewvc/llvm-project?rev=90149&view=rev
Log:
Fix an assert.
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=90149&r1=90148&r2=90149&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGVtable.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGVtable.cpp Mon Nov 30 13:43:26 2009
@@ -867,8 +867,8 @@
const CXXRecordDecl *PrimaryBase = Layout.getPrimaryBase();
if (PrimaryBase) {
- assert(PrimaryBase->isCanonicalDecl() &&
- "Should have the canonical decl of the primary base!");
+ assert(PrimaryBase->isDefinition() &&
+ "Should have the definition decl of the primary base!");
// Since the record decl shares its vtable pointer with the primary base
// we need to start counting at the end of the primary base's vtable.
More information about the cfe-commits
mailing list