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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@227692
91177308-0d34-0410-b5e6-
96231b3b80d8
unsigned NumElts = VT.getVectorNumElements();\r
Mask.push_back(NumElts);\r
for (unsigned i = 1; i < NumElts; i++)\r
- Mask.push_back(IsLoad ? SM_SentinelZero : i);\r
+ Mask.push_back(IsLoad ? static_cast<int>(SM_SentinelZero) : i);\r
}\r
} // llvm namespace\r