commit | 2bef7f5499541e3b68f114cc4d7d197e9a902fe7 | [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 | ba119a83e4a6f53c25d614932ba592c172c9e0a6 | |
parent | abea951c34876a5374d0e3678c7989b225c5c895 [diff] |
fix my containsBreak predicate. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@126600 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/CodeGen/CodeGenFunction.cpp b/lib/CodeGen/CodeGenFunction.cpp index 999788f..4ab3277 100644 --- a/lib/CodeGen/CodeGenFunction.cpp +++ b/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.