[llvm] r247986 - Silencing a -Wsign-compare warning; NFC.

Aaron Ballman via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 18 06:31:42 PDT 2015


Author: aaronballman
Date: Fri Sep 18 08:31:42 2015
New Revision: 247986

URL: http://llvm.org/viewvc/llvm-project?rev=247986&view=rev
Log:
Silencing a -Wsign-compare warning; NFC.

Modified:
    llvm/trunk/lib/Bitcode/Reader/BitcodeReader.cpp

Modified: llvm/trunk/lib/Bitcode/Reader/BitcodeReader.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Bitcode/Reader/BitcodeReader.cpp?rev=247986&r1=247985&r2=247986&view=diff
==============================================================================
--- llvm/trunk/lib/Bitcode/Reader/BitcodeReader.cpp (original)
+++ llvm/trunk/lib/Bitcode/Reader/BitcodeReader.cpp Fri Sep 18 08:31:42 2015
@@ -3274,7 +3274,7 @@ std::error_code BitcodeReader::parseModu
     case bitc::MODULE_CODE_ALIAS:
     case bitc::MODULE_CODE_ALIAS_OLD: {
       bool NewRecord = BitCode == bitc::MODULE_CODE_ALIAS;
-      if (Record.size() < (3 + NewRecord))
+      if (Record.size() < (3 + (unsigned)NewRecord))
         return error("Invalid record");
       unsigned OpNum = 0;
       Type *Ty = getTypeByID(Record[OpNum++]);




More information about the llvm-commits mailing list