diff options
author | Anders Carlsson <andersca@mac.com> | 2009-11-30 19:43:26 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2009-11-30 19:43:26 +0000 |
commit | c920fa2a741122966d7127d616a33349918143eb (patch) | |
tree | f1f744e0cfcdf2451f1be9adfe4a4face52072f4 /clang/lib/CodeGen | |
parent | 598f8ff9e5c56d9496f56299c0d7107b7c15d24e (diff) | |
download | bcm5719-llvm-c920fa2a741122966d7127d616a33349918143eb.tar.gz bcm5719-llvm-c920fa2a741122966d7127d616a33349918143eb.zip |
Fix an assert.
llvm-svn: 90149
Diffstat (limited to 'clang/lib/CodeGen')
-rw-r--r-- | clang/lib/CodeGen/CGVtable.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CGVtable.cpp b/clang/lib/CodeGen/CGVtable.cpp index 9625dd296af..224c829a5b1 100644 --- a/clang/lib/CodeGen/CGVtable.cpp +++ b/clang/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. |