diff options
author | Chris Lattner <sabre@nondot.org> | 2010-01-09 21:45:57 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-01-09 21:45:57 +0000 |
commit | 4824fcdf37139efa57466a2a5753dd6e5e792ef8 (patch) | |
tree | 721932235fcc125ae5aedef3b8b18c8588db7cea /lib/Frontend/RewriteObjC.cpp | |
parent | 197a338f57a9a44efd5f025ce3d462430d260016 (diff) |
revert 91891, a workaround for PR5514.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@93077 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Frontend/RewriteObjC.cpp')
-rw-r--r-- | lib/Frontend/RewriteObjC.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Frontend/RewriteObjC.cpp b/lib/Frontend/RewriteObjC.cpp index ee803a33e3..a75835edc9 100644 --- a/lib/Frontend/RewriteObjC.cpp +++ b/lib/Frontend/RewriteObjC.cpp @@ -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(); |