Lanai: fix -Wsign-compare warning

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@265368 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
JF Bastien 2016-04-05 00:20:27 +00:00
parent 218731256d
commit 3f3bbdbcf9

View File

@ -133,7 +133,7 @@ def i32neg16 : Operand<i32>, PatLeaf<(i32 imm), [{
def i32lo16s : Operand<i32>, PatLeaf<(i32 imm), [{
// i32lo16 predicate - true if the 32-bit immediate has only rightmost 16
// bits set.
return ((N->getSExtValue() & 0xFFFFUL) == N->getSExtValue());}], LO16> {
return ((int64_t)(N->getSExtValue() & 0xFFFFUL) == N->getSExtValue());}], LO16> {
let ParserMatchClass = LoImm16AsmOperand;
}