[llvm] r242145 - Silencing two MSVC warnings; 'argument' : truncation from 'unsigned int' to 'int16_t' and truncation of constant value. NFC intended.

Aaron Ballman aaron at aaronballman.com
Tue Jul 14 07:14:00 PDT 2015


Author: aaronballman
Date: Tue Jul 14 09:14:00 2015
New Revision: 242145

URL: http://llvm.org/viewvc/llvm-project?rev=242145&view=rev
Log:
Silencing two MSVC warnings; 'argument' : truncation from 'unsigned int' to 'int16_t' and truncation of constant value. NFC intended.

Modified:
    llvm/trunk/lib/Target/Mips/AsmParser/MipsAsmParser.cpp

Modified: llvm/trunk/lib/Target/Mips/AsmParser/MipsAsmParser.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Mips/AsmParser/MipsAsmParser.cpp?rev=242145&r1=242144&r2=242145&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Mips/AsmParser/MipsAsmParser.cpp (original)
+++ llvm/trunk/lib/Target/Mips/AsmParser/MipsAsmParser.cpp Tue Jul 14 09:14:00 2015
@@ -1767,7 +1767,7 @@ void emitRRI(unsigned Opcode, unsigned D
           Instructions);
 }
 
-template <unsigned ShiftAmount>
+template <int16_t ShiftAmount>
 void createLShiftOri(MCOperand Operand, unsigned RegNo, SMLoc IDLoc,
                      SmallVectorImpl<MCInst> &Instructions) {
   if (ShiftAmount >= 32)





More information about the llvm-commits mailing list