diff options
author | Chris Lattner <sabre@nondot.org> | 2011-02-28 00:42:31 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2011-02-28 00:42:31 +0000 |
commit | 2bef7f5499541e3b68f114cc4d7d197e9a902fe7 (patch) | |
tree | ba119a83e4a6f53c25d614932ba592c172c9e0a6 /lib/CodeGen/CodeGenFunction.cpp | |
parent | abea951c34876a5374d0e3678c7989b225c5c895 (diff) |
fix my containsBreak predicate.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@126600 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenFunction.cpp')
-rw-r--r-- | lib/CodeGen/CodeGenFunction.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/CodeGen/CodeGenFunction.cpp b/lib/CodeGen/CodeGenFunction.cpp index 999788f58c..4ab327712a 100644 --- a/lib/CodeGen/CodeGenFunction.cpp +++ b/lib/CodeGen/CodeGenFunction.cpp @@ -421,6 +421,9 @@ bool CodeGenFunction::containsBreak(const Stmt *S) { // 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. |