From 30db828ce76f09b8a21ad6c83d8d3278e1ec1864 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 28 Feb 2011 00:42:31 +0000 Subject: fix my containsBreak predicate. llvm-svn: 126600 --- clang/lib/CodeGen/CodeGenFunction.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'clang/lib') diff --git a/clang/lib/CodeGen/CodeGenFunction.cpp b/clang/lib/CodeGen/CodeGenFunction.cpp index 999788f58c3..4ab327712a5 100644 --- a/clang/lib/CodeGen/CodeGenFunction.cpp +++ b/clang/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. -- cgit v1.2.3