[llvm] r240525 - MILexer.cpp: Try to fix a warning. [-Wsign-compare]

NAKAMURA Takumi geek4civic at gmail.com
Thu Jun 25 16:07:20 PDT 2015


I guess -m32 might cause it.

2015-06-25 1:36 GMT+09:00 Alex L <arphaman at gmail.com>:
> Thanks for the fix,
> Oddly enough I can't seem to reproduce the original warning with my clang :/
> Alex
>
> 2015-06-23 23:40 GMT-07:00 NAKAMURA Takumi <geek4civic at gmail.com>:
>>
>> Author: chapuni
>> Date: Wed Jun 24 01:40:09 2015
>> New Revision: 240525
>>
>> URL: http://llvm.org/viewvc/llvm-project?rev=240525&view=rev
>> Log:
>> MILexer.cpp: Try to fix a warning. [-Wsign-compare]
>>
>> Modified:
>>     llvm/trunk/lib/CodeGen/MIRParser/MILexer.cpp
>>
>> Modified: llvm/trunk/lib/CodeGen/MIRParser/MILexer.cpp
>> URL:
>> http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/MIRParser/MILexer.cpp?rev=240525&r1=240524&r2=240525&view=diff
>>
>> ==============================================================================
>> --- llvm/trunk/lib/CodeGen/MIRParser/MILexer.cpp (original)
>> +++ llvm/trunk/lib/CodeGen/MIRParser/MILexer.cpp Wed Jun 24 01:40:09 2015
>> @@ -33,7 +33,7 @@ public:
>>
>>    bool isEOF() const { return Ptr == End; }
>>
>> -  char peek(unsigned I = 0) const { return End - Ptr <= I ? 0 : Ptr[I]; }
>> +  char peek(int I = 0) const { return End - Ptr <= I ? 0 : Ptr[I]; }
>>
>>    void advance() { ++Ptr; }
>>
>>
>>
>> _______________________________________________
>> llvm-commits mailing list
>> llvm-commits at cs.uiuc.edu
>> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>
>



More information about the llvm-commits mailing list