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