X86: silence a GCC warning

GCC 4.9 gives the following warning:
  warning: enumeral and non-enumeral type in conditional expression
Cast the enumeral value to an integer within the ternary operation.  NFC.

llvm-svn: 227692
This commit is contained in:
Saleem Abdulrasool 2015-01-31 17:56:11 +00:00
parent 6253035c18
commit 3475dc358c
1 changed files with 1 additions and 1 deletions

View File

@ -429,6 +429,6 @@ void DecodeScalarMoveMask(MVT VT, bool IsLoad, SmallVectorImpl<int> &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<int>(SM_SentinelZero) : i);
}
} // llvm namespace