[llvm-commits] [llvm] r151959 - /llvm/trunk/include/llvm/ADT/Hashing.h
Daniel Dunbar
daniel at zuster.org
Fri Mar 2 16:35:49 PST 2012
Author: ddunbar
Date: Fri Mar 2 18:35:48 2012
New Revision: 151959
URL: http://llvm.org/viewvc/llvm-project?rev=151959&view=rev
Log:
hash_state: Don't use initialization target during initialization.
Modified:
llvm/trunk/include/llvm/ADT/Hashing.h
Modified: llvm/trunk/include/llvm/ADT/Hashing.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ADT/Hashing.h?rev=151959&r1=151958&r2=151959&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ADT/Hashing.h (original)
+++ llvm/trunk/include/llvm/ADT/Hashing.h Fri Mar 2 18:35:48 2012
@@ -273,9 +273,8 @@
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;
}
More information about the llvm-commits
mailing list