OSDN Git Service
(root)
/
android-x86
/
external-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
464549a
)
Fix build breakage due to implicit conversion.
author
Zachary Turner
<zturner@google.com>
Mon, 2 May 2016 18:36:58 +0000
(18:36 +0000)
committer
Zachary Turner
<zturner@google.com>
Mon, 2 May 2016 18:36:58 +0000
(18:36 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@268277
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/DebugInfo/PDB/Raw/NameHashTable.cpp
patch
|
blob
|
history
diff --git
a/lib/DebugInfo/PDB/Raw/NameHashTable.cpp
b/lib/DebugInfo/PDB/Raw/NameHashTable.cpp
index
3e8de73
..
1a468c4
100644
(file)
--- a/
lib/DebugInfo/PDB/Raw/NameHashTable.cpp
+++ b/
lib/DebugInfo/PDB/Raw/NameHashTable.cpp
@@
-37,7
+37,8
@@
static inline uint32_t HashStringV1(StringRef Str) {
// Maximum of 3 bytes left. Hash a 2 byte word if possible, then hash the
// possibly remaining 1 byte.
if (RemainderSize >= 2) {
- Result ^= *reinterpret_cast<const ulittle16_t *>(Remainder);
+ uint16_t Value = *reinterpret_cast<const ulittle16_t *>(Remainder);
+ Result ^= static_cast<uint32_t>(Value);
Remainder += 2;
RemainderSize -= 2;
}