aboutsummaryrefslogtreecommitdiff
path: root/lib/Lex/PTHLexer.cpp
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
commitd69ab87dd98dc495fe5731a2a26e47b36a06834e (patch)
tree68dbcf75a79f73f6ecca789047ddbcec9ea05a91 /lib/Lex/PTHLexer.cpp
parentc8b44f59979994c7a2e0865144615cb04f7fcd1d (diff)
Fix bad reading of bytes in ReadUnalignedLE64() (copy-paste error).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64355 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Lex/PTHLexer.cpp')
-rw-r--r--lib/Lex/PTHLexer.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Lex/PTHLexer.cpp b/lib/Lex/PTHLexer.cpp
index 64ddb925c8..8e789d9348 100644
--- a/lib/Lex/PTHLexer.cpp
+++ b/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;
}