]> granicus.if.org Git - clang/commitdiff
Un-break clang based on r151638 - What was meant to be a trivial variable name change...
authorJames Molloy <james.molloy@arm.com>
Tue, 28 Feb 2012 18:23:49 +0000 (18:23 +0000)
committerJames Molloy <james.molloy@arm.com>
Tue, 28 Feb 2012 18:23:49 +0000 (18:23 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@151641 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaDecl.cpp

index 3a842ab500f87056f705dbe78bec1f76c43a9a0b..41477a49c8499e4d749eabf3cadacebd1ac9011f 100644 (file)
@@ -7244,7 +7244,7 @@ Decl *Sema::ActOnStartOfFunctionDef(Scope *FnBodyScope, Decl *D) {
   // introduce them into the function scope.
   if (FnBodyScope) {
     for (llvm::ArrayRef<NamedDecl*>::iterator I = FD->getDeclsInPrototypeScope().begin(),
-           E = FD->getDeclsInPrototypeScope().end(); I != E; ++E) {
+           E = FD->getDeclsInPrototypeScope().end(); I != E; ++I) {
       NamedDecl *D = *I;
 
       // Some of these decls (like enums) may have been pinned to the translation unit