Fix an assert.

llvm-svn: 90149
diff --git a/clang/lib/CodeGen/CGVtable.cpp b/clang/lib/CodeGen/CGVtable.cpp
index 9625dd2..224c829 100644
--- a/clang/lib/CodeGen/CGVtable.cpp
+++ b/clang/lib/CodeGen/CGVtable.cpp
@@ -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.