projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cf95d3a
)
hash_state: Don't use initialization target during initialization.
author
Daniel Dunbar
<daniel@zuster.org>
Sat, 3 Mar 2012 00:35:48 +0000
(
00:35
+0000)
committer
Daniel Dunbar
<daniel@zuster.org>
Sat, 3 Mar 2012 00:35:48 +0000
(
00:35
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@151959
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/ADT/Hashing.h
patch
|
blob
|
history
diff --git
a/include/llvm/ADT/Hashing.h
b/include/llvm/ADT/Hashing.h
index c862d627d06d712d34294a8a75dfd8d61e330d6f..7bb540e8331aa109b77eb96cc53a90b1c5344526 100644
(file)
--- 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;
}