1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 19:12:56 +02:00

Opt-mode -Wunused-variable cleanup

llvm-svn: 124346
This commit is contained in:
Matt Beaumont-Gay 2011-01-27 01:47:50 +00:00
parent b81f6dbc21
commit d984615f35

View File

@ -2875,8 +2875,7 @@ SDValue SelectionDAG::getNode(unsigned Opcode, DebugLoc DL, EVT VT,
"Extract subvector must be from larger vector to smaller vector!");
if (ConstantSDNode *CSD = dyn_cast<ConstantSDNode>(Index.getNode())) {
uint64_t Idx = CSD->getZExtValue();
assert((VT.getVectorNumElements() + Idx
assert((VT.getVectorNumElements() + CSD->getZExtValue()
<= N1.getValueType().getVectorNumElements())
&& "Extract subvector overflow!");
}
@ -3094,8 +3093,7 @@ SDValue SelectionDAG::getNode(unsigned Opcode, DebugLoc DL, EVT VT,
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())) {
uint64_t Idx = CSD->getZExtValue();
assert((N2.getValueType().getVectorNumElements() + Idx
assert((N2.getValueType().getVectorNumElements() + CSD->getZExtValue()
<= VT.getVectorNumElements())
&& "Insert subvector overflow!");
}