Fix endianness on some MSVC versions.

Looks like it was evaluating undef == undef to true.

llvm-svn: 179549
This commit is contained in:
Rafael Espindola 2013-04-15 19:28:45 +00:00
parent a571e21c4e
commit a652799f70
1 changed files with 1 additions and 1 deletions
llvm/include/llvm/Support

View File

@ -29,7 +29,7 @@
namespace llvm {
namespace sys {
#if BYTE_ORDER == BIG_ENDIAN
#if defined(BYTBYTE_ORDER) && defined(BIG_ENDIAN) && BYTE_ORDER == BIG_ENDIAN
static const bool IsBigEndianHost = true;
#else
static const bool IsBigEndianHost = false;