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

Alex L arphaman at gmail.com
Wed Jun 24 09:36:06 PDT 2015


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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150624/fcdf792a/attachment.html>


More information about the llvm-commits mailing list