summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgeniy Stepanov <eugeni.stepanov@gmail.com>2014-07-07 08:31:55 +0000
committerEvgeniy Stepanov <eugeni.stepanov@gmail.com>2014-07-07 08:31:55 +0000
commit9ba93ec4d25b898281da5b8d9b3f718121859965 (patch)
treed1c9cb2d5e4ba90ac400a6561500c9e51c28592f
parent5f6822216b228c4b36b2e70839b671fa9606f7ab (diff)
downloadcompiler-rt-9ba93ec4d25b898281da5b8d9b3f718121859965.tar.gz
[msan] Better hash function for chained origins.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@212440 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/msan/msan_chained_origin_depot.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/msan/msan_chained_origin_depot.cc b/lib/msan/msan_chained_origin_depot.cc
index a98bcf5d0..cc7e537c5 100644
--- a/lib/msan/msan_chained_origin_depot.cc
+++ b/lib/msan/msan_chained_origin_depot.cc
@@ -19,7 +19,7 @@ namespace __msan {
struct ChainedOriginDepotDesc {
u32 here_id;
u32 prev_id;
- u32 hash() const { return here_id ^ prev_id; }
+ u32 hash() const { return (here_id * 0x1f1f1f1f) ^ prev_id; }
bool is_valid() { return true; }
};