[cfe-commits] r126600 - /cfe/trunk/lib/CodeGen/CodeGenFunction.cpp

Chris Lattner sabre at nondot.org
Sun Feb 27 16:42:31 PST 2011


Author: lattner
Date: Sun Feb 27 18:42:31 2011
New Revision: 126600

URL: http://llvm.org/viewvc/llvm-project?rev=126600&view=rev
Log:
fix my containsBreak predicate.

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

Modified: cfe/trunk/lib/CodeGen/CodeGenFunction.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CodeGenFunction.cpp?rev=126600&r1=126599&r2=126600&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CodeGenFunction.cpp (original)
+++ cfe/trunk/lib/CodeGen/CodeGenFunction.cpp Sun Feb 27 18:42:31 2011
@@ -421,6 +421,9 @@
   // include it and anything inside of it.
   if (isa<SwitchStmt>(S) || isa<WhileStmt>(S) || isa<DoStmt>(S) ||
       isa<ForStmt>(S))
+    return false;
+  
+  if (isa<BreakStmt>(S))
     return true;
   
   // Scan subexpressions for verboten breaks.





More information about the cfe-commits mailing list