From: Anders Carlsson Date: Tue, 22 Dec 2009 06:13:42 +0000 (+0000) Subject: Work around PR5514. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fc4020a4fac183c47a2eadaf2aa62a4fb77447ca;p=clang Work around PR5514. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91891 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Frontend/RewriteObjC.cpp b/lib/Frontend/RewriteObjC.cpp index 2aecf77281..027fa65e9f 100644 --- a/lib/Frontend/RewriteObjC.cpp +++ b/lib/Frontend/RewriteObjC.cpp @@ -4509,7 +4509,8 @@ Stmt *RewriteObjC::RewriteFunctionBodyOrGlobalInitializer(Stmt *S) { Stmts.push_back(S); else if (isa(S)) { Stmts.push_back(S); - ObjCBcLabelNo.push_back(++BcLabelCount); + ++BcLabelCount; + ObjCBcLabelNo.push_back(BcLabelCount); } SourceRange OrigStmtRange = S->getSourceRange();