[LLVMdev] fix warning with newer g++ compilers
Chris Lattner
sabre at nondot.org
Sun Dec 16 10:51:28 PST 2007
On Dec 15, 2007, at 1:41 PM, Mike Stump wrote:
> Ok, here is the patch again... I also included fixes for the bits
> that originally gave my mailer fits...
>
> Two votes for orange, so I went with orange...
Hehe, thanks Mike, and thanks for applying it Bill! One request in
the future: please tweak your editor to not mess around with end-of-
line whitespace, so that the diff doesn't have extraneous gunk in it.
Thanks!
-Chris
>
> Doing diffs in .:
> --- ./lib/AsmParser/LLLexer.cpp.~1~ 2007-12-14 22:09:06.000000000
> -0800
> +++ ./lib/AsmParser/LLLexer.cpp 2007-12-15 13:02:47.000000000 -0800
> @@ -54,7 +54,7 @@ static uint64_t HexIntToVal(const char *
> Result += C-'A'+10;
> else if (C >= 'a' && C <= 'f')
> Result += C-'a'+10;
> -
> +
> if (Result < OldRes) { // Uh, oh, overflow detected!!!
> GenerateError("constant bigger than 64 bits detected!");
> return 0;
> @@ -102,7 +102,7 @@ static void HexToIntPair(const char *Buf
> // appropriate character.
> static void UnEscapeLexed(std::string &Str) {
> if (Str.empty()) return;
> -
> +
> char *Buffer = &Str[0], *EndBuffer = Buffer+Str.size();
> char *BOut = Buffer;
> for (char *BIn = Buffer; BIn != EndBuffer; ) {
More information about the llvm-dev
mailing list