[llvm] r322262 - [X86] Fix unused variable in release builds.
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 10 23:19:29 PST 2018
Author: ctopper
Date: Wed Jan 10 23:19:29 2018
New Revision: 322262
URL: http://llvm.org/viewvc/llvm-project?rev=322262&view=rev
Log:
[X86] Fix unused variable in release 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=322262&r1=322261&r2=322262&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86ISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86ISelLowering.cpp Wed Jan 10 23:19:29 2018
@@ -24369,7 +24369,6 @@ static SDValue LowerMSCATTER(SDValue Op,
}
MVT IndexVT = Index.getSimpleValueType();
- MVT MaskVT = Mask.getSimpleValueType();
// If the index is v2i32, we're being called by type legalization and we
// should just let the default handling take care of it.
@@ -24397,7 +24396,8 @@ static SDValue LowerMSCATTER(SDValue Op,
// Mask
// At this point we have promoted mask operand
- assert(MaskVT.getScalarType() == MVT::i1 && "unexpected mask type");
+ assert(Mask.getValueType().getScalarType() == MVT::i1 &&
+ "unexpected mask type");
MVT ExtMaskVT = MVT::getVectorVT(MVT::i1, NumElts);
// Use the original mask here, do not modify the mask twice
Mask = ExtendToType(N->getMask(), ExtMaskVT, DAG, true);
More information about the llvm-commits
mailing list