Fix gcc -Wunused-but-set-variable warning.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202800 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Patrik Hagglund 2014-03-04 08:55:18 +00:00
parent 2bfe24c418
commit 4f6b2a26da

View File

@ -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)) {