aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGVtable.cpp
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2009-11-30 19:43:26 +0000
committerAnders Carlsson <andersca@mac.com>2009-11-30 19:43:26 +0000
commit0121fbdee132f6fcf957956ae5c18ff53fb1dde6 (patch)
treeeaca220f2669339358d15642df26cda2d49f2079 /lib/CodeGen/CGVtable.cpp
parent8d2c0a9814e56c2b22e22d1045181c735aef62fd (diff)
Fix an assert.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90149 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGVtable.cpp')
-rw-r--r--lib/CodeGen/CGVtable.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/CGVtable.cpp b/lib/CodeGen/CGVtable.cpp
index 9625dd296a..224c829a5b 100644
--- a/lib/CodeGen/CGVtable.cpp
+++ b/lib/CodeGen/CGVtable.cpp
@@ -867,8 +867,8 @@ void CGVtableInfo::ComputeMethodVtableIndices(const CXXRecordDecl *RD) {
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.