summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrik Hagglund <patrik.h.hagglund@ericsson.com>2014-03-04 08:55:18 +0000
committerPatrik Hagglund <patrik.h.hagglund@ericsson.com>2014-03-04 08:55:18 +0000
commit4f6b2a26dae747fd4cce1a5a1e41fdb58e787cd4 (patch)
tree0bc1adbf639bfe5cfdbfb4e09f814e4c3e98bf03
parent2bfe24c418f7f5261c4ed4cbcc4c0126e482495d (diff)
downloadllvm-4f6b2a26dae747fd4cce1a5a1e41fdb58e787cd4.tar.gz
llvm-4f6b2a26dae747fd4cce1a5a1e41fdb58e787cd4.tar.bz2
llvm-4f6b2a26dae747fd4cce1a5a1e41fdb58e787cd4.tar.xz
Fix gcc -Wunused-but-set-variable warning.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202800 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/CodeGen/PBQP/ReductionRules.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/include/llvm/CodeGen/PBQP/ReductionRules.h b/include/llvm/CodeGen/PBQP/ReductionRules.h
index a259c85327..bebd211367 100644
--- a/include/llvm/CodeGen/PBQP/ReductionRules.h
+++ b/include/llvm/CodeGen/PBQP/ReductionRules.h
@@ -125,11 +125,9 @@ namespace PBQP {
delete ZXECosts;
EdgeId YZEId = G.findEdge(YNId, ZNId);
- bool AddedEdge = false;
if (YZEId == G.invalidEdgeId()) {
YZEId = G.addEdge(YNId, ZNId, Delta);
- AddedEdge = true;
} else {
const Matrix &YZECosts = G.getEdgeCosts(YZEId);
if (YNId == G.getEdgeNode1Id(YZEId)) {