hash_state: Don't use initialization target during initialization.

llvm-svn: 151959
This commit is contained in:
Daniel Dunbar 2012-03-03 00:35:48 +00:00
parent a0bd36e3bc
commit 62a58f4928
1 changed files with 2 additions and 3 deletions

View File

@ -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;
}