Fix bug where the body block of an ObjCForCollectionStmt would not properly get expanded as a series of basic blocks.

llvm-svn: 59197
This commit is contained in:
Ted Kremenek 2008-11-13 00:06:59 +00:00
parent c7ec5fcf24
commit ce9082ad5c
1 changed files with 1 additions and 1 deletions

View File

@ -840,7 +840,7 @@ CFGBlock* CFGBuilder::VisitObjCForCollectionStmt(ObjCForCollectionStmt* S) {
// Now create the true branch. // Now create the true branch.
Succ = ConditionBlock; Succ = ConditionBlock;
CFGBlock* BodyBlock = addStmt(S->getBody()); CFGBlock* BodyBlock = Visit(S->getBody());
FinishBlock(BodyBlock); FinishBlock(BodyBlock);
// Connect up the condition block // Connect up the condition block