[llvm] r179549 - Fix endianness on some MSVC versions.
Charles Davis
cdavis5x at gmail.com
Mon Apr 15 20:28:41 PDT 2013
On Apr 15, 2013, at 1:28 PM, Rafael Espindola wrote:
> Author: rafael
> Date: Mon Apr 15 14:28:45 2013
> New Revision: 179549
>
> URL: http://llvm.org/viewvc/llvm-project?rev=179549&view=rev
> Log:
> Fix endianness on some MSVC versions.
>
> Looks like it was evaluating undef == undef to true.
>
> Modified:
> llvm/trunk/include/llvm/Support/Host.h
>
> Modified: llvm/trunk/include/llvm/Support/Host.h
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/Host.h?rev=179549&r1=179548&r2=179549&view=diff
> ==============================================================================
> --- llvm/trunk/include/llvm/Support/Host.h (original)
> +++ llvm/trunk/include/llvm/Support/Host.h Mon Apr 15 14:28:45 2013
> @@ -29,7 +29,7 @@
> namespace llvm {
> namespace sys {
>
> -#if BYTE_ORDER == BIG_ENDIAN
> +#if defined(BYTBYTE_ORDER) && defined(BIG_ENDIAN) && BYTE_ORDER == BIG_ENDIAN
^~~
Huh? Looks like you typed those three characters, then absent-mindedly typed the whole identifier. Did you mean "BYTE_ORDER"? ;)
Chip
> static const bool IsBigEndianHost = true;
> #else
> static const bool IsBigEndianHost = false;
>
>
> _______________________________________________
> 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