fix my containsBreak predicate.

llvm-svn: 126600
This commit is contained in:
Chris Lattner 2011-02-28 00:42:31 +00:00
parent 6774b1f1c1
commit 30db828ce7
1 changed files with 3 additions and 0 deletions

View File

@ -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.