summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2010-09-02 07:08:05 +0000
committerChandler Carruth <chandlerc@gmail.com>2010-09-02 07:08:05 +0000
commit4315093eb76b8806fed72273f0909d68645f12d3 (patch)
tree27dc0664d28c36406ae7d1503de345ac3178683d
parent59b4d2a371e2a37db2876bc57db19475c7a1c527 (diff)
downloadllvm-4315093eb76b8806fed72273f0909d68645f12d3.tar.gz
llvm-4315093eb76b8806fed72273f0909d68645f12d3.tar.bz2
llvm-4315093eb76b8806fed72273f0909d68645f12d3.tar.xz
Silence an ambiguous else warning from GCC.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@112809 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/CodeGen/PBQP/HeuristicBase.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/CodeGen/PBQP/HeuristicBase.h b/lib/CodeGen/PBQP/HeuristicBase.h
index 37442317bb..791c227f0d 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;
}
+ }
}
}