[llvm] r268277 - Fix build breakage due to implicit conversion.
Zachary Turner via llvm-commits
llvm-commits at lists.llvm.org
Mon May 2 11:36:58 PDT 2016
Author: zturner
Date: Mon May 2 13:36:58 2016
New Revision: 268277
URL: http://llvm.org/viewvc/llvm-project?rev=268277&view=rev
Log:
Fix build breakage due to implicit conversion.
Modified:
llvm/trunk/lib/DebugInfo/PDB/Raw/NameHashTable.cpp
Modified: llvm/trunk/lib/DebugInfo/PDB/Raw/NameHashTable.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/DebugInfo/PDB/Raw/NameHashTable.cpp?rev=268277&r1=268276&r2=268277&view=diff
==============================================================================
--- llvm/trunk/lib/DebugInfo/PDB/Raw/NameHashTable.cpp (original)
+++ llvm/trunk/lib/DebugInfo/PDB/Raw/NameHashTable.cpp Mon May 2 13:36:58 2016
@@ -37,7 +37,8 @@ static inline uint32_t HashStringV1(Stri
// 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;
}
More information about the llvm-commits
mailing list