[llvm-commits] [llvm] r124350 - /llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
Matt Beaumont-Gay
matthewbg at google.com
Wed Jan 26 18:39:27 PST 2011
Author: matthewbg
Date: Wed Jan 26 20:39:27 2011
New Revision: 124350
URL: http://llvm.org/viewvc/llvm-project?rev=124350&view=rev
Log:
Try harder to not have unused variables.
Modified:
llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
Modified: llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp?rev=124350&r1=124349&r2=124350&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp Wed Jan 26 20:39:27 2011
@@ -2875,6 +2875,7 @@
"Extract subvector must be from larger vector to smaller vector!");
if (ConstantSDNode *CSD = dyn_cast<ConstantSDNode>(Index.getNode())) {
+ (void)CSD;
assert((VT.getVectorNumElements() + CSD->getZExtValue()
<= N1.getValueType().getVectorNumElements())
&& "Extract subvector overflow!");
@@ -3093,6 +3094,7 @@
assert(N2.getValueType().getSimpleVT() <= N1.getValueType().getSimpleVT() &&
"Insert subvector must be from smaller vector to larger vector!");
if (ConstantSDNode *CSD = dyn_cast<ConstantSDNode>(Index.getNode())) {
+ (void)CSD;
assert((N2.getValueType().getVectorNumElements() + CSD->getZExtValue()
<= VT.getVectorNumElements())
&& "Insert subvector overflow!");
More information about the llvm-commits
mailing list