]> granicus.if.org Git - clang/commitdiff
Update comment.
authorChris Lattner <sabre@nondot.org>
Fri, 23 Jan 2009 00:13:28 +0000 (00:13 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 23 Jan 2009 00:13:28 +0000 (00:13 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62819 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Lex/PTHLexer.cpp

index 51d49cf6e2cee23688896bf74d7b34098c56d9b0..b0f06271c4fbd3c4cc2f7a73408bb384c02e051c 100644 (file)
@@ -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);