aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/ADT
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2012-03-03 00:35:48 +0000
committerDaniel Dunbar <daniel@zuster.org>2012-03-03 00:35:48 +0000
commita2a9b9e7752f1eeb8c158112fc940ff67b04d7a1 (patch)
treef26f1cd0a8502221ed1f564cd2c33493e2c9f6bc /include/llvm/ADT
parentcf95d3a5d7f419a859bd12794a25dbf78151d8e8 (diff)
downloadexternal_llvm-a2a9b9e7752f1eeb8c158112fc940ff67b04d7a1.zip
external_llvm-a2a9b9e7752f1eeb8c158112fc940ff67b04d7a1.tar.gz
external_llvm-a2a9b9e7752f1eeb8c158112fc940ff67b04d7a1.tar.bz2
hash_state: Don't use initialization target during initialization.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@151959 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/ADT')
-rw-r--r--include/llvm/ADT/Hashing.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/include/llvm/ADT/Hashing.h b/include/llvm/ADT/Hashing.h
index c862d62..7bb540e 100644
--- a/include/llvm/ADT/Hashing.h
+++ b/include/llvm/ADT/Hashing.h
@@ -273,9 +273,8 @@ struct hash_state {
static hash_state create(const char *s, uint64_t seed) {
hash_state state = {
0, seed, hash_16_bytes(seed, k1), rotate(seed ^ k1, 49),
- seed * k1, shift_mix(seed), hash_16_bytes(state.h4, state.h5),
- seed
- };
+ seed * k1, shift_mix(seed), 0, seed };
+ state.h6 = hash_16_bytes(state.h4, state.h5);
state.mix(s);
return state;
}