forked from OSchip/llvm-project
Fix gcc -Wunused-but-set-variable warning.
llvm-svn: 202800
This commit is contained in:
parent
618bd1b75b
commit
29a76ac646
|
@ -125,11 +125,9 @@ namespace PBQP {
|
||||||
delete ZXECosts;
|
delete ZXECosts;
|
||||||
|
|
||||||
EdgeId YZEId = G.findEdge(YNId, ZNId);
|
EdgeId YZEId = G.findEdge(YNId, ZNId);
|
||||||
bool AddedEdge = false;
|
|
||||||
|
|
||||||
if (YZEId == G.invalidEdgeId()) {
|
if (YZEId == G.invalidEdgeId()) {
|
||||||
YZEId = G.addEdge(YNId, ZNId, Delta);
|
YZEId = G.addEdge(YNId, ZNId, Delta);
|
||||||
AddedEdge = true;
|
|
||||||
} else {
|
} else {
|
||||||
const Matrix &YZECosts = G.getEdgeCosts(YZEId);
|
const Matrix &YZECosts = G.getEdgeCosts(YZEId);
|
||||||
if (YNId == G.getEdgeNode1Id(YZEId)) {
|
if (YNId == G.getEdgeNode1Id(YZEId)) {
|
||||||
|
|
Loading…
Reference in New Issue