]> granicus.if.org Git - clang/commitdiff
revert 91891, a workaround for PR5514.
authorChris Lattner <sabre@nondot.org>
Sat, 9 Jan 2010 21:45:57 +0000 (21:45 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 9 Jan 2010 21:45:57 +0000 (21:45 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@93077 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Frontend/RewriteObjC.cpp

index ee803a33e3a3f1509b7248bf5a18b5e20207b6b0..a75835edc9a2a46fbb01629b8094edb9312ef61e 100644 (file)
@@ -4765,8 +4765,7 @@ Stmt *RewriteObjC::RewriteFunctionBodyOrGlobalInitializer(Stmt *S) {
     Stmts.push_back(S);
   else if (isa<ObjCForCollectionStmt>(S)) {
     Stmts.push_back(S);
-    ++BcLabelCount;
-    ObjCBcLabelNo.push_back(BcLabelCount);
+    ObjCBcLabelNo.push_back(++BcLabelCount);
   }
 
   SourceRange OrigStmtRange = S->getSourceRange();