diff options
| author | David Majnemer <david.majnemer@gmail.com> | 2016-12-18 20:10:50 +0000 |
|---|---|---|
| committer | David Majnemer <david.majnemer@gmail.com> | 2016-12-18 20:10:50 +0000 |
| commit | b7477b540eef8375ff36066df84fca75b65c7279 (patch) | |
| tree | 4867a44618fc67f121e687d486fcd2b694bd055e /llvm/lib/DebugInfo/PDB/Raw/Hash.cpp | |
| parent | 2b9d4b4daf773e0a6ce0a3002c6e4125d6bd1c21 (diff) | |
| download | bcm5719-llvm-b7477b540eef8375ff36066df84fca75b65c7279.tar.gz bcm5719-llvm-b7477b540eef8375ff36066df84fca75b65c7279.zip | |
[PDB] Don't use the long type
Long is not the same size across a number of the platforms we support.
Use unsigned int here instead, it is more appropriate because
overflow/wrap-around is possible and, in this case, expected.
llvm-svn: 290068
Diffstat (limited to 'llvm/lib/DebugInfo/PDB/Raw/Hash.cpp')
| -rw-r--r-- | llvm/lib/DebugInfo/PDB/Raw/Hash.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/DebugInfo/PDB/Raw/Hash.cpp b/llvm/lib/DebugInfo/PDB/Raw/Hash.cpp index 2920124cade..b9f685ec69d 100644 --- a/llvm/lib/DebugInfo/PDB/Raw/Hash.cpp +++ b/llvm/lib/DebugInfo/PDB/Raw/Hash.cpp @@ -74,7 +74,7 @@ uint32_t pdb::hashStringV2(StringRef Str) { Hash ^= (Hash >> 6); } - return Hash * 1664525L + 1013904223L; + return Hash * 1664525U + 1013904223U; } // Corresponds to `SigForPbCb` in langapi/shared/crc32.h. |

