diff options
Diffstat (limited to 'clang/lib')
| -rw-r--r-- | clang/lib/AST/ASTContext.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/AST/ASTContext.cpp b/clang/lib/AST/ASTContext.cpp index 25a95792583..1ab76e21be0 100644 --- a/clang/lib/AST/ASTContext.cpp +++ b/clang/lib/AST/ASTContext.cpp @@ -631,7 +631,7 @@ const RecordDecl *ASTContext::addRecordToClass(const ObjCInterfaceDecl *D) { D->getIdentifier()); /// FIXME! Can do collection of ivars and adding to the record while /// doing it. - for (unsigned int i = 0; i != RecFields.size(); i++) { + for (unsigned i = 0, e = RecFields.size(); i != e; ++i) { NewRD->addDecl(FieldDecl::Create(*this, NewRD, RecFields[i]->getLocation(), RecFields[i]->getIdentifier(), |

