commit | 30db828ce76f09b8a21ad6c83d8d3278e1ec1864 | [log] [tgz] |
---|---|---|
author | Chris Lattner <sabre@nondot.org> | Mon Feb 28 00:42:31 2011 +0000 |
committer | Chris Lattner <sabre@nondot.org> | Mon Feb 28 00:42:31 2011 +0000 |
tree | 5dfae2f927ed9e225808b71a6e1ff3617eb3ae3f | |
parent | 6774b1f1c1fb325bc3d2f426dcdbd725ec3c9d73 [diff] [blame] |
fix my containsBreak predicate. llvm-svn: 126600
diff --git a/clang/lib/CodeGen/CodeGenFunction.cpp b/clang/lib/CodeGen/CodeGenFunction.cpp index 999788f..4ab3277 100644 --- a/clang/lib/CodeGen/CodeGenFunction.cpp +++ b/clang/lib/CodeGen/CodeGenFunction.cpp
@@ -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.