diff options
author | Ted Kremenek <kremenek@apple.com> | 2008-11-13 00:06:59 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2008-11-13 00:06:59 +0000 |
commit | 006dd8a2bd3723d4b6f3526be8f1a4dc0e9cfac3 (patch) | |
tree | 67e295f7ca4d635fd4565dfd3d396545627d666f /lib/AST/CFG.cpp | |
parent | dd2b12a0329fee69ac2c26c2a3a355fb722e1e54 (diff) |
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
Diffstat (limited to 'lib/AST/CFG.cpp')
-rw-r--r-- | lib/AST/CFG.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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 |