Silence an ambiguous else warning from GCC.
authorChandler Carruth <chandlerc@gmail.com>
Thu, 2 Sep 2010 07:08:05 +0000 (07:08 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Thu, 2 Sep 2010 07:08:05 +0000 (07:08 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@112809 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/PBQP/HeuristicBase.h

index 37442317bb61b3ebfe5593a97d4ab8a8f0eb0aca..791c227f0d07e756ed3abeae9ea8b503bb383b75 100644 (file)
@@ -173,12 +173,13 @@ namespace PBQP {
       bool finished = false;
 
       while (!finished) {
-        if (!optimalReduce())
+        if (!optimalReduce()) {
           if (impl().heuristicReduce()) {
             getSolver().recordRN();
           } else {
             finished = true;
           }
+        }
       }
     }