summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-01-23 00:13:28 +0000
committerChris Lattner <sabre@nondot.org>2009-01-23 00:13:28 +0000
commitf8ccb4f9e3dc128028e9cd9bf89c212bc84e0733 (patch)
tree7b3bb8219513894b8599fa4e0181557f0cb11b0f
parent94e826df0b8816c2a8e460c4a29de279cdc5ccfc (diff)
downloadbcm5719-llvm-f8ccb4f9e3dc128028e9cd9bf89c212bc84e0733.tar.gz
bcm5719-llvm-f8ccb4f9e3dc128028e9cd9bf89c212bc84e0733.zip
Update comment.
llvm-svn: 62819
-rw-r--r--clang/lib/Lex/PTHLexer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Lex/PTHLexer.cpp b/clang/lib/Lex/PTHLexer.cpp
index 51d49cf6e2c..b0f06271c4f 100644
--- a/clang/lib/Lex/PTHLexer.cpp
+++ b/clang/lib/Lex/PTHLexer.cpp
@@ -41,8 +41,8 @@ static inline uint16_t ReadUnalignedLE16(const unsigned char *&Data) {
}
static inline uint32_t ReadLE32(const unsigned char *&Data) {
- // Hosts that directly support unaligned little-endian 32-bit loads can just
- // use them.
+ // Hosts that directly support little-endian 32-bit loads can just
+ // use them. Big-endian hosts need a bswap.
uint32_t V = *((uint32_t*)Data);
if (llvm::sys::isBigEndianHost())
V = llvm::ByteSwap_32(V);
OpenPOWER on IntegriCloud