projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c08db18
)
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)
llvm-svn: 268277
llvm/lib/DebugInfo/PDB/Raw/NameHashTable.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/DebugInfo/PDB/Raw/NameHashTable.cpp
b/llvm/lib/DebugInfo/PDB/Raw/NameHashTable.cpp
index
3e8de73
..
1a468c4
100644
(file)
--- a/
llvm/lib/DebugInfo/PDB/Raw/NameHashTable.cpp
+++ b/
llvm/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;
}