diff options
author | Duncan Sands <baldrick@free.fr> | 2011-10-18 12:44:00 +0000 |
---|---|---|
committer | Duncan Sands <baldrick@free.fr> | 2011-10-18 12:44:00 +0000 |
commit | d278d35b130594903538d1b1a55fb0495d5a3663 (patch) | |
tree | 9bb53a6a04e072de21a8f01b0a5435f5c3ff3caa /llvm/lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp | |
parent | 80ca407610b79eb35caef83f975c45273b9a0f82 (diff) | |
download | bcm5719-llvm-d278d35b130594903538d1b1a55fb0495d5a3663.tar.gz bcm5719-llvm-d278d35b130594903538d1b1a55fb0495d5a3663.zip |
Fix a bunch of unused variable warnings when doing a release
build with gcc-4.6.
llvm-svn: 142350
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp b/llvm/lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp index f1a86275187..efbd28c412f 100644 --- a/llvm/lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp @@ -384,7 +384,6 @@ SDValue VectorLegalizer::ExpandVSELECT(SDValue Op) { // Implement VSELECT in terms of XOR, AND, OR // on platforms which do not support blend natively. EVT VT = Op.getOperand(0).getValueType(); - EVT OVT = Op.getOperand(1).getValueType(); DebugLoc DL = Op.getDebugLoc(); SDValue Mask = Op.getOperand(0); @@ -398,7 +397,8 @@ SDValue VectorLegalizer::ExpandVSELECT(SDValue Op) { !TLI.isOperationLegalOrCustom(ISD::OR, VT)) return DAG.UnrollVectorOp(Op.getNode()); - assert(VT.getSizeInBits() == OVT.getSizeInBits() && "Invalid mask size"); + assert(VT.getSizeInBits() == Op.getOperand(1).getValueType().getSizeInBits() + && "Invalid mask size"); // Bitcast the operands to be the same type as the mask. // This is needed when we select between FP types because // the mask is a vector of integers. |