]> granicus.if.org Git - clang/commitdiff
Fix bug where the body block of an ObjCForCollectionStmt would not properly get expan...
authorTed Kremenek <kremenek@apple.com>
Thu, 13 Nov 2008 00:06:59 +0000 (00:06 +0000)
committerTed Kremenek <kremenek@apple.com>
Thu, 13 Nov 2008 00:06:59 +0000 (00:06 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59197 91177308-0d34-0410-b5e6-96231b3b80d8

lib/AST/CFG.cpp

index 4b7085a03dbeec0742eb71fc08e0a8462c20bb90..35eaa1433226383d77949a7ea61c98590b3ff7d8 100644 (file)
@@ -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