From: Chris Lattner Date: Mon, 28 Feb 2011 00:42:31 +0000 (+0000) Subject: fix my containsBreak predicate. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2bef7f5499541e3b68f114cc4d7d197e9a902fe7;p=clang 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 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(S) || isa(S) || isa(S) || isa(S)) + return false; + + if (isa(S)) return true; // Scan subexpressions for verboten breaks.