Silencing two MSVC warnings; 'argument' : truncation from 'unsigned int' to 'int16_t...
authorAaron Ballman <aaron@aaronballman.com>
Tue, 14 Jul 2015 14:14:00 +0000 (14:14 +0000)
committerAaron Ballman <aaron@aaronballman.com>
Tue, 14 Jul 2015 14:14:00 +0000 (14:14 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@242145 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/Mips/AsmParser/MipsAsmParser.cpp

index 6ee1472b06ca9a7a6eb4fbb8ba61268355e71896..5107d2ae58c38eab9f32391d7f7b2b46c6b597b5 100644 (file)
@@ -1767,7 +1767,7 @@ void emitRRI(unsigned Opcode, unsigned DstReg, unsigned SrcReg, int16_t Imm,
           Instructions);
 }
 
-template <unsigned ShiftAmount>
+template <int16_t ShiftAmount>
 void createLShiftOri(MCOperand Operand, unsigned RegNo, SMLoc IDLoc,
                      SmallVectorImpl<MCInst> &Instructions) {
   if (ShiftAmount >= 32)