summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/sanitizer_common/sanitizer_stackdepotbase.h
diff options
context:
space:
mode:
authorAlexey Samsonov <vonosmas@gmail.com>2014-10-27 03:10:27 +0000
committerAlexey Samsonov <vonosmas@gmail.com>2014-10-27 03:10:27 +0000
commite853b4f2e42d80156272ebca58a8e92c79d2082a (patch)
treefb027654970ec7a66d4e3bdaadd80315bbd092a5 /compiler-rt/lib/sanitizer_common/sanitizer_stackdepotbase.h
parent18c89411b8c24883bc2d7e86a4ec40ebc8957b54 (diff)
downloadbcm5719-llvm-e853b4f2e42d80156272ebca58a8e92c79d2082a.tar.gz
bcm5719-llvm-e853b4f2e42d80156272ebca58a8e92c79d2082a.zip
[Sanitizer] Return code that calculates hash for stacktrace back to StackDepot implementation
llvm-svn: 220663
Diffstat (limited to 'compiler-rt/lib/sanitizer_common/sanitizer_stackdepotbase.h')
-rw-r--r--compiler-rt/lib/sanitizer_common/sanitizer_stackdepotbase.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_stackdepotbase.h b/compiler-rt/lib/sanitizer_common/sanitizer_stackdepotbase.h
index d2d3d34980c..5de2e711fe4 100644
--- a/compiler-rt/lib/sanitizer_common/sanitizer_stackdepotbase.h
+++ b/compiler-rt/lib/sanitizer_common/sanitizer_stackdepotbase.h
@@ -97,8 +97,8 @@ typename StackDepotBase<Node, kReservedBits, kTabSizeLog>::handle_type
StackDepotBase<Node, kReservedBits, kTabSizeLog>::Put(args_type args,
bool *inserted) {
if (inserted) *inserted = false;
- if (!args.is_valid()) return handle_type();
- uptr h = args.hash();
+ if (!Node::is_valid(args)) return handle_type();
+ uptr h = Node::hash(args);
atomic_uintptr_t *p = &tab[h % kTabSize];
uptr v = atomic_load(p, memory_order_consume);
Node *s = (Node *)(v & ~1);
OpenPOWER on IntegriCloud