summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2009-02-12 03:39:55 +0000
committerTed Kremenek <kremenek@apple.com>2009-02-12 03:39:55 +0000
commitc6a2a372229e4f9550e44547c4f24e339b766b03 (patch)
tree1d7d95e1cf5ef1041503af00af9213c37de86ed7
parent3280145da41d3ccd4d317b0ba05409c7dffac85c (diff)
downloadbcm5719-llvm-c6a2a372229e4f9550e44547c4f24e339b766b03.tar.gz
bcm5719-llvm-c6a2a372229e4f9550e44547c4f24e339b766b03.zip
Fix bad reading of bytes in ReadUnalignedLE64() (copy-paste error).
llvm-svn: 64355
-rw-r--r--clang/lib/Lex/PTHLexer.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/clang/lib/Lex/PTHLexer.cpp b/clang/lib/Lex/PTHLexer.cpp
index 64ddb925c83..8e789d93487 100644
--- a/clang/lib/Lex/PTHLexer.cpp
+++ b/clang/lib/Lex/PTHLexer.cpp
@@ -55,10 +55,10 @@ static inline uint64_t ReadUnalignedLE64(const unsigned char *&Data) {
((uint64_t)Data[1] << 8) |
((uint64_t)Data[2] << 16) |
((uint64_t)Data[3] << 24) |
- ((uint64_t)Data[1] << 32) |
- ((uint64_t)Data[2] << 40) |
- ((uint64_t)Data[3] << 48) |
- ((uint64_t)Data[3] << 56);
+ ((uint64_t)Data[4] << 32) |
+ ((uint64_t)Data[5] << 40) |
+ ((uint64_t)Data[6] << 48) |
+ ((uint64_t)Data[7] << 56);
Data += 8;
return V;
}
OpenPOWER on IntegriCloud