[llvm] r319891 - [X86] Avoid unused variable warning in Release builds. NFCI.
Benjamin Kramer via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 6 05:32:36 PST 2017
Author: d0k
Date: Wed Dec 6 05:32:36 2017
New Revision: 319891
URL: http://llvm.org/viewvc/llvm-project?rev=319891&view=rev
Log:
[X86] Avoid unused variable warning in Release builds. NFCI.
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=319891&r1=319890&r2=319891&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86ISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86ISelLowering.cpp Wed Dec 6 05:32:36 2017
@@ -16194,7 +16194,6 @@ static SDValue LowerANY_EXTEND(SDValue O
static SDValue LowerZERO_EXTEND(SDValue Op, const X86Subtarget &Subtarget,
SelectionDAG &DAG) {
- MVT VT = Op.getSimpleValueType();
SDValue In = Op.getOperand(0);
MVT SVT = In.getSimpleValueType();
@@ -16205,8 +16204,9 @@ static SDValue LowerZERO_EXTEND(SDValue
if (SDValue Res = LowerAVXExtend(Op, DAG, Subtarget))
return Res;
- assert(!VT.is256BitVector() || !SVT.is128BitVector() ||
- VT.getVectorNumElements() != SVT.getVectorNumElements());
+ assert(!Op.getSimpleValueType().is256BitVector() || !SVT.is128BitVector() ||
+ Op.getSimpleValueType().getVectorNumElements() !=
+ SVT.getVectorNumElements());
return SDValue();
}
More information about the llvm-commits
mailing list