From 2bef7f5499541e3b68f114cc4d7d197e9a902fe7 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 28 Feb 2011 00:42:31 +0000 Subject: [PATCH] fix my containsBreak predicate. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@126600 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/CodeGenFunction.cpp | 3 +++ 1 file changed, 3 insertions(+) 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. -- 2.50.1