diff --git a/lib/Target/X86/Utils/X86ShuffleDecode.cpp b/lib/Target/X86/Utils/X86ShuffleDecode.cpp index e71fda551a1..a7101e4febb 100644 --- a/lib/Target/X86/Utils/X86ShuffleDecode.cpp +++ b/lib/Target/X86/Utils/X86ShuffleDecode.cpp @@ -429,6 +429,6 @@ void DecodeScalarMoveMask(MVT VT, bool IsLoad, SmallVectorImpl &Mask) { unsigned NumElts = VT.getVectorNumElements(); Mask.push_back(NumElts); for (unsigned i = 1; i < NumElts; i++) - Mask.push_back(IsLoad ? SM_SentinelZero : i); + Mask.push_back(IsLoad ? static_cast(SM_SentinelZero) : i); } } // llvm namespace