[Hashing] hash_1to3_bytes - avoid trunc(v + zext(x)) NFCI.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Sun, 14 Jul 2019 15:05:05 +0000 (15:05 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Sun, 14 Jul 2019 15:05:05 +0000 (15:05 +0000)
commit34c067331e465bb992693de7c6c4f9ee46f6de49
tree9879259c4316f7e0d8d80f487383c2e07dba624a
parent03d5e28fe9438c327b49c67d3022a31ff2b53dc9
[Hashing] hash_1to3_bytes - avoid trunc(v + zext(x)) NFCI.

MSVC complains about the extension to uint64_t for an addition followed by truncation back to uint32_t - add an explicit uint32_t cast to avoid this.

llvm-svn: 366020
llvm/include/llvm/ADT/Hashing.h