From: Rafael Espindola Date: Mon, 15 Apr 2013 15:10:35 +0000 (+0000) Subject: Use llvm::sys::IsBigEndianHost. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3f532c5c387106e7f122f0503ee7b3542d35b775;p=platform%2Fupstream%2Fllvm.git Use llvm::sys::IsBigEndianHost. llvm-svn: 179529 --- diff --git a/clang/include/clang/Basic/OnDiskHashTable.h b/clang/include/clang/Basic/OnDiskHashTable.h index 06cb143..ee30123 100644 --- a/clang/include/clang/Basic/OnDiskHashTable.h +++ b/clang/include/clang/Basic/OnDiskHashTable.h @@ -103,7 +103,7 @@ inline uint32_t ReadLE32(const unsigned char *&Data) { // Hosts that directly support little-endian 32-bit loads can just // use them. Big-endian hosts need a bswap. uint32_t V = *((const uint32_t*)Data); - if (llvm::sys::isBigEndianHost()) + if (llvm::sys::IsBigEndianHost) V = llvm::ByteSwap_32(V); Data += 4; return V;