[cfe-commits] r59197 - /cfe/trunk/lib/AST/CFG.cpp

Ted Kremenek kremenek at apple.com
Wed Nov 12 16:07:14 PST 2008


Author: kremenek
Date: Wed Nov 12 18:06:59 2008
New Revision: 59197

URL: http://llvm.org/viewvc/llvm-project?rev=59197&view=rev
Log:
Fix bug where the body block of an ObjCForCollectionStmt would not properly get expanded as a series of basic blocks.

Modified:
    cfe/trunk/lib/AST/CFG.cpp

Modified: cfe/trunk/lib/AST/CFG.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/CFG.cpp?rev=59197&r1=59196&r2=59197&view=diff

==============================================================================
--- cfe/trunk/lib/AST/CFG.cpp (original)
+++ cfe/trunk/lib/AST/CFG.cpp Wed Nov 12 18:06:59 2008
@@ -840,7 +840,7 @@
   
   // Now create the true branch.
   Succ = ConditionBlock;
-  CFGBlock* BodyBlock = addStmt(S->getBody());
+  CFGBlock* BodyBlock = Visit(S->getBody());
   FinishBlock(BodyBlock);
   
   // Connect up the condition block





More information about the cfe-commits mailing list