]> granicus.if.org Git - clang/commitdiff
Work around PR5514.
authorAnders Carlsson <andersca@mac.com>
Tue, 22 Dec 2009 06:13:42 +0000 (06:13 +0000)
committerAnders Carlsson <andersca@mac.com>
Tue, 22 Dec 2009 06:13:42 +0000 (06:13 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91891 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Frontend/RewriteObjC.cpp

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