[Hashing] hash_1to3_bytes - avoid trunc(v + zext(x)) NFCI.
commite361aad25331e19fd92f43df918f743a3abb0698
authorSimon Pilgrim <lvm-dev@redking.me.uk>
Sun, 14 Jul 2019 15:05:05 +0000 (14 15:05 +0000)
committerSimon Pilgrim <lvm-dev@redking.me.uk>
Sun, 14 Jul 2019 15:05:05 +0000 (14 15:05 +0000)
treef8af86df953a6decbe2881afe7bac66742fb57ab
parentdef7484c8216e242e81902c35a738d7f6e05dde8
[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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@366020 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/ADT/Hashing.h