[llvm] r179549 - Fix endianness on some MSVC versions.
Rafael Espindola
rafael.espindola at gmail.com
Mon Apr 15 12:28:46 PDT 2013
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
static const bool IsBigEndianHost = true;
#else
static const bool IsBigEndianHost = false;
More information about the llvm-commits
mailing list