From df09c6b4bf8fc234b7b6b35878dda969c0e0f1d5 Mon Sep 17 00:00:00 2001 From: Aaron Ballman Date: Mon, 17 Aug 2015 14:25:57 +0000 Subject: [PATCH] Correcting a -Woverflow warning where 0xFFFF was overflowing an implicit constant conversion. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@245220 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/Mips/AsmParser/MipsAsmParser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Target/Mips/AsmParser/MipsAsmParser.cpp b/lib/Target/Mips/AsmParser/MipsAsmParser.cpp index 26ce745a8e2..393c9e79cfb 100644 --- a/lib/Target/Mips/AsmParser/MipsAsmParser.cpp +++ b/lib/Target/Mips/AsmParser/MipsAsmParser.cpp @@ -1934,7 +1934,7 @@ bool MipsAsmParser::loadImmediate(int64_t ImmValue, unsigned DstReg, // Traditional behaviour seems to special case this particular value. It's // not clear why other masks are handled differently. if (ImmValue == 0xffffffff) { - emitRI(Mips::LUi, TmpReg, 0xffff, IDLoc, Instructions); + emitRI(Mips::LUi, TmpReg, -1, IDLoc, Instructions); emitRRI(Mips::DSRL32, TmpReg, TmpReg, 0, IDLoc, Instructions); if (UseSrcReg) emitRRR(AdduOp, DstReg, TmpReg, SrcReg, IDLoc, Instructions); -- 2.34.1