aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/X86/Utils/X86ShuffleDecode.cpp
diff options
context:
space:
mode:
authorSaleem Abdulrasool <compnerd@compnerd.org>2015-01-31 17:56:11 +0000
committerSaleem Abdulrasool <compnerd@compnerd.org>2015-01-31 17:56:11 +0000
commit3475dc358c6f76d38b58373dd77adf0f16b0b01f (patch)
tree7f5e8980a672df33ca4c0e7dd4144e52c5e2ee61 /llvm/lib/Target/X86/Utils/X86ShuffleDecode.cpp
parent6253035c186e2fe08ed86cd8fe68e0f8d99be1db (diff)
downloadllvm-3475dc358c6f76d38b58373dd77adf0f16b0b01f.zip
llvm-3475dc358c6f76d38b58373dd77adf0f16b0b01f.tar.gz
llvm-3475dc358c6f76d38b58373dd77adf0f16b0b01f.tar.bz2
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
Diffstat (limited to 'llvm/lib/Target/X86/Utils/X86ShuffleDecode.cpp')
-rw-r--r--llvm/lib/Target/X86/Utils/X86ShuffleDecode.cpp2
1 files changed, 1 insertions, 1 deletions
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<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