diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-08-08 00:40:46 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-08-08 00:40:46 +0000 |
commit | 8a1871d10b3c8cdbac9b8378eebd95461790d1e6 (patch) | |
tree | 3c6ece6c11290bcff247ef55b78b8e1093eeaba9 /lib/CodeGen/PBQP | |
parent | e2652f2cd3f3b34e87f57238dee5006c8f7d672e (diff) | |
download | external_llvm-8a1871d10b3c8cdbac9b8378eebd95461790d1e6.zip external_llvm-8a1871d10b3c8cdbac9b8378eebd95461790d1e6.tar.gz external_llvm-8a1871d10b3c8cdbac9b8378eebd95461790d1e6.tar.bz2 |
Fix some -Asserts unused variable warnings.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78447 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/PBQP')
-rw-r--r-- | lib/CodeGen/PBQP/GraphBase.h | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/lib/CodeGen/PBQP/GraphBase.h b/lib/CodeGen/PBQP/GraphBase.h index f04a163..cc3e017 100644 --- a/lib/CodeGen/PBQP/GraphBase.h +++ b/lib/CodeGen/PBQP/GraphBase.h @@ -138,13 +138,11 @@ protected: NodeEntry &node1Entry = getNodeEntry(newEdgeEntry.getNode1Itr()), &node2Entry = getNodeEntry(newEdgeEntry.getNode2Itr()); - unsigned n1Len = node1Entry.getCosts().getLength(), - n2Len = node2Entry.getCosts().getLength(), - mRows = newEdgeEntry.getCosts().getRows(), - mCols = newEdgeEntry.getCosts().getCols(); - // Sanity check on matrix dimensions. - assert((n1Len == mRows) && (n2Len == mCols) && + assert((node1Entry.getCosts().getLength() == + newEdgeEntry.getCosts().getRows()) && + (node2Entry.getCosts().getLength() == + newEdgeEntry.getCosts().getCols()) && "Matrix dimensions do not match cost vector dimensions."); // Create links between nodes and edges. |