[llvm] r284107 - Silence unused warning in non-assert builds.
Daniel Jasper via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 12 23:39:45 PDT 2016
Author: djasper
Date: Thu Oct 13 01:39:44 2016
New Revision: 284107
URL: http://llvm.org/viewvc/llvm-project?rev=284107&view=rev
Log:
Silence unused warning in non-assert builds.
Modified:
llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
Modified: llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86ISelLowering.cpp?rev=284107&r1=284106&r2=284107&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86ISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86ISelLowering.cpp Thu Oct 13 01:39:44 2016
@@ -12935,10 +12935,10 @@ static SDValue LowerEXTRACT_SUBVECTOR(SD
SDValue In = Op.getOperand(0);
SDValue Idx = Op.getOperand(1);
unsigned IdxVal = cast<ConstantSDNode>(Idx)->getZExtValue();
- MVT ResVT = Op.getSimpleValueType();
- MVT InVT = In.getSimpleValueType();
+ MVT ResVT = Op.getSimpleValueType();
- assert((InVT.is256BitVector() || InVT.is512BitVector()) &&
+ assert((In.getSimpleValueType().is256BitVector() ||
+ In.getSimpleValueType().is512BitVector()) &&
"Can only extract from 256-bit or 512-bit vectors");
if (ResVT.is128BitVector())
More information about the llvm-commits
mailing list