From: Patrik Hagglund Date: Tue, 4 Mar 2014 08:55:18 +0000 (+0000) Subject: Fix gcc -Wunused-but-set-variable warning. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=4f6b2a26dae747fd4cce1a5a1e41fdb58e787cd4;p=oota-llvm.git Fix gcc -Wunused-but-set-variable warning. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202800 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/CodeGen/PBQP/ReductionRules.h b/include/llvm/CodeGen/PBQP/ReductionRules.h index a259c853279..bebd2113672 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)) {