From e853b4f2e42d80156272ebca58a8e92c79d2082a Mon Sep 17 00:00:00 2001 From: Alexey Samsonov Date: Mon, 27 Oct 2014 03:10:27 +0000 Subject: [Sanitizer] Return code that calculates hash for stacktrace back to StackDepot implementation llvm-svn: 220663 --- compiler-rt/lib/sanitizer_common/sanitizer_stackdepotbase.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'compiler-rt/lib/sanitizer_common/sanitizer_stackdepotbase.h') 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::handle_type StackDepotBase::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); -- cgit v1.2.3