From: Ted Kremenek Date: Thu, 13 Nov 2008 00:06:59 +0000 (+0000) Subject: Fix bug where the body block of an ObjCForCollectionStmt would not properly get expan... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=006dd8a2bd3723d4b6f3526be8f1a4dc0e9cfac3;p=clang Fix bug where the body block of an ObjCForCollectionStmt would not properly get expanded as a series of basic blocks. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59197 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/AST/CFG.cpp b/lib/AST/CFG.cpp index 4b7085a03d..35eaa14332 100644 --- a/lib/AST/CFG.cpp +++ b/lib/AST/CFG.cpp @@ -840,7 +840,7 @@ CFGBlock* CFGBuilder::VisitObjCForCollectionStmt(ObjCForCollectionStmt* S) { // Now create the true branch. Succ = ConditionBlock; - CFGBlock* BodyBlock = addStmt(S->getBody()); + CFGBlock* BodyBlock = Visit(S->getBody()); FinishBlock(BodyBlock); // Connect up the condition block