diff options
author | Vitaly Buka <vitalybuka@google.com> | 2021-09-28 23:01:20 -0700 |
---|---|---|
committer | Vitaly Buka <vitalybuka@google.com> | 2021-10-05 20:54:06 -0700 |
commit | 3129aa5caf1f9b5c48ab708f43cb3fc5173dd021 (patch) | |
tree | 639ec1ba014dc4d0eb76c292385356ba80dae5fb /compiler-rt/lib/sanitizer_common/sanitizer_chained_origin_depot.h | |
parent | 5ae9a3e4bf9351b0bc596bd4a9ec8e881377924d (diff) | |
download | llvm-3129aa5caf1f9b5c48ab708f43cb3fc5173dd021.zip llvm-3129aa5caf1f9b5c48ab708f43cb3fc5173dd021.tar.gz llvm-3129aa5caf1f9b5c48ab708f43cb3fc5173dd021.tar.bz2 |
[NFC][sanitizers] Add StackDepotBase Node::hash_type
Depends on D111177.
Differential Revision: https://reviews.llvm.org/D111182
Diffstat (limited to 'compiler-rt/lib/sanitizer_common/sanitizer_chained_origin_depot.h')
-rw-r--r-- | compiler-rt/lib/sanitizer_common/sanitizer_chained_origin_depot.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_chained_origin_depot.h b/compiler-rt/lib/sanitizer_common/sanitizer_chained_origin_depot.h index c1302a0..73a10e1 100644 --- a/compiler-rt/lib/sanitizer_common/sanitizer_chained_origin_depot.h +++ b/compiler-rt/lib/sanitizer_common/sanitizer_chained_origin_depot.h @@ -43,6 +43,7 @@ class ChainedOriginDepot { }; struct ChainedOriginDepotNode { + using hash_type = u32; ChainedOriginDepotNode *link; u32 id; u32 here_id; @@ -50,15 +51,15 @@ class ChainedOriginDepot { typedef ChainedOriginDepotDesc args_type; - bool eq(u32 hash, const args_type &args) const; + bool eq(hash_type hash, const args_type &args) const; static uptr storage_size(const args_type &args); - static u32 hash(const args_type &args); + static hash_type hash(const args_type &args); static bool is_valid(const args_type &args); - void store(const args_type &args, u32 other_hash); + void store(const args_type &args, hash_type other_hash); args_type load() const; |