summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2016-05-02 18:36:58 +0000
committerZachary Turner <zturner@google.com>2016-05-02 18:36:58 +0000
commita801dc17d93f09f8d983dc8f8634edbbd4a9ddd2 (patch)
tree79734ace4a31c2cb3e3bca6c0482b5699232d629 /llvm/lib
parentc08db1840c32392725dfba26228145aac5f80ba0 (diff)
downloadbcm5719-llvm-a801dc17d93f09f8d983dc8f8634edbbd4a9ddd2.tar.gz
bcm5719-llvm-a801dc17d93f09f8d983dc8f8634edbbd4a9ddd2.zip
Fix build breakage due to implicit conversion.
llvm-svn: 268277
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/DebugInfo/PDB/Raw/NameHashTable.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/DebugInfo/PDB/Raw/NameHashTable.cpp b/llvm/lib/DebugInfo/PDB/Raw/NameHashTable.cpp
index 3e8de73609f..1a468c436d8 100644
--- 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;
}
OpenPOWER on IntegriCloud