Use a signed value for this enum to avoid spuriuos warnings from gcc.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@153184 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Benjamin Kramer 2012-03-21 13:48:11 +00:00
parent ff739c1575
commit 47817f30f2
2 changed files with 2 additions and 2 deletions

View File

@ -511,7 +511,7 @@ void llvm::EmitAnyX86InstComments(const MCInst *MI, raw_ostream &OS,
for (unsigned i = 0, e = ShuffleMask.size(); i != e; ++i) {
if (i != 0)
OS << ',';
if (ShuffleMask[i] == (int)SM_SentinelZero) {
if (ShuffleMask[i] == SM_SentinelZero) {
OS << "zero";
continue;
}

View File

@ -24,7 +24,7 @@
namespace llvm {
enum {
SM_SentinelZero = ~0U
SM_SentinelZero = -1
};
void DecodeINSERTPSMask(unsigned Imm, SmallVectorImpl<int> &ShuffleMask);