[cfe-commits] r65370 - /cfe/trunk/lib/CodeGen/CGBlocks.cpp

Mike Stump mrs at apple.com
Mon Feb 23 18:59:30 PST 2009


Author: mrs
Date: Mon Feb 23 20:59:30 2009
New Revision: 65370

URL: http://llvm.org/viewvc/llvm-project?rev=65370&view=rev
Log:
Ensure that we can't break or continue out of a block.

Modified:
    cfe/trunk/lib/CodeGen/CGBlocks.cpp

Modified: cfe/trunk/lib/CodeGen/CGBlocks.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGBlocks.cpp?rev=65370&r1=65369&r2=65370&view=diff

==============================================================================
--- cfe/trunk/lib/CodeGen/CGBlocks.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGBlocks.cpp Mon Feb 23 20:59:30 2009
@@ -412,6 +412,11 @@
 
   const BlockDecl *BD = Expr->getBlockDecl();
 
+  // FIXME: there are tons of variables in CGF that are copied, we probably
+  // don't want many of them, any of them.  When we trim that, this can go away.
+  // Help ensure no control flow in or out of the block.
+  BreakContinueStack.clear();
+
   // FIXME: This leaks
   ImplicitParamDecl *SelfDecl =
     ImplicitParamDecl::Create(getContext(), 0,





More information about the cfe-commits mailing list