From: Chandler Carruth Date: Thu, 2 Sep 2010 07:08:05 +0000 (+0000) Subject: Silence an ambiguous else warning from GCC. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=4315093eb76b8806fed72273f0909d68645f12d3;p=oota-llvm.git Silence an ambiguous else warning from GCC. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@112809 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/PBQP/HeuristicBase.h b/lib/CodeGen/PBQP/HeuristicBase.h index 37442317bb6..791c227f0d0 100644 --- a/lib/CodeGen/PBQP/HeuristicBase.h +++ b/lib/CodeGen/PBQP/HeuristicBase.h @@ -173,12 +173,13 @@ namespace PBQP { bool finished = false; while (!finished) { - if (!optimalReduce()) + if (!optimalReduce()) { if (impl().heuristicReduce()) { getSolver().recordRN(); } else { finished = true; } + } } }