From 3475dc358c6f76d38b58373dd77adf0f16b0b01f Mon Sep 17 00:00:00 2001 From: Saleem Abdulrasool Date: Sat, 31 Jan 2015 17:56:11 +0000 Subject: 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 --- llvm/lib/Target/X86/Utils/X86ShuffleDecode.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/Target/X86/Utils/X86ShuffleDecode.cpp') diff --git a/llvm/lib/Target/X86/Utils/X86ShuffleDecode.cpp b/llvm/lib/Target/X86/Utils/X86ShuffleDecode.cpp index e71fda5..a7101e4 100644 --- a/llvm/lib/Target/X86/Utils/X86ShuffleDecode.cpp +++ b/llvm/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 -- cgit v1.1