From ce9082ad5cafb7c066f856403b225cc0279b2dad Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Thu, 13 Nov 2008 00:06:59 +0000 Subject: [PATCH] Fix bug where the body block of an ObjCForCollectionStmt would not properly get expanded as a series of basic blocks. llvm-svn: 59197 --- clang/lib/AST/CFG.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang/lib/AST/CFG.cpp b/clang/lib/AST/CFG.cpp index 4b7085a03dbe..35eaa1433226 100644 --- a/clang/lib/AST/CFG.cpp +++ b/clang/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