diff options
-rw-r--r-- | llvm/lib/Target/X86/X86ISelLowering.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/X86/X86ISelLowering.cpp b/llvm/lib/Target/X86/X86ISelLowering.cpp index ff7ea5d38f5..a08958e72eb 100644 --- a/llvm/lib/Target/X86/X86ISelLowering.cpp +++ b/llvm/lib/Target/X86/X86ISelLowering.cpp @@ -24369,7 +24369,6 @@ static SDValue LowerMSCATTER(SDValue Op, const X86Subtarget &Subtarget, } 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, const X86Subtarget &Subtarget, // 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); |