summaryrefslogtreecommitdiffstats
path: root/clang/lib
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2008-11-13 00:06:59 +0000
committerTed Kremenek <kremenek@apple.com>2008-11-13 00:06:59 +0000
commitce9082ad5cafb7c066f856403b225cc0279b2dad (patch)
tree7889400e2a493df93cfb961f6a5f7378512ab3b0 /clang/lib
parentc7ec5fcf24308e6151845e9c3e8740f7c8682e06 (diff)
downloadbcm5719-llvm-ce9082ad5cafb7c066f856403b225cc0279b2dad.tar.gz
bcm5719-llvm-ce9082ad5cafb7c066f856403b225cc0279b2dad.zip
Fix bug where the body block of an ObjCForCollectionStmt would not properly get expanded as a series of basic blocks.
llvm-svn: 59197
Diffstat (limited to 'clang/lib')
-rw-r--r--clang/lib/AST/CFG.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/AST/CFG.cpp b/clang/lib/AST/CFG.cpp
index 4b7085a03db..35eaa143322 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
OpenPOWER on IntegriCloud