From: Anders Carlsson Date: Wed, 24 Nov 2010 22:55:29 +0000 (+0000) Subject: Fix typo. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3a03765f706024f8b054635631547287bdd1831b;p=clang Fix typo. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120130 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/AST/CXXInheritance.cpp b/lib/AST/CXXInheritance.cpp index 90a214ed8e..fd14a739df 100644 --- a/lib/AST/CXXInheritance.cpp +++ b/lib/AST/CXXInheritance.cpp @@ -674,7 +674,7 @@ AddIndirectPrimaryBases(const CXXRecordDecl *RD, ASTContext &Context, for (CXXRecordDecl::base_class_const_iterator I = RD->bases_begin(), E = RD->bases_end(); I != E; ++I) { - assert(!E->getType()->isDependentType() && + assert(!I->getType()->isDependentType() && "Cannot get indirect primary bases for class with dependent bases."); const CXXRecordDecl *BaseDecl = @@ -697,7 +697,7 @@ CXXRecordDecl::getIndirectPrimaryBases(CXXIndirectPrimaryBaseSet& Bases) const { for (CXXRecordDecl::base_class_const_iterator I = bases_begin(), E = bases_end(); I != E; ++I) { - assert(!E->getType()->isDependentType() && + assert(!I->getType()->isDependentType() && "Cannot get indirect primary bases for class with dependent bases."); const CXXRecordDecl *BaseDecl =