summaryrefslogtreecommitdiff
path: root/lib/sanitizer_common/sanitizer_allocator.cc
diff options
context:
space:
mode:
authorKostya Serebryany <kcc@google.com>2012-12-03 11:57:01 +0000
committerKostya Serebryany <kcc@google.com>2012-12-03 11:57:01 +0000
commit864f5131db7ccd3fc8344dc2bcdebf66c03a900e (patch)
treecb786912231544fa0de40d097ef3a73c39e22345 /lib/sanitizer_common/sanitizer_allocator.cc
parent433c219f8772c35dc4e6bd32bb4131dbc07fdfd6 (diff)
[tsan] remove unused InternalAllocBlock as part of larger refactoring
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@169123 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/sanitizer_common/sanitizer_allocator.cc')
-rw-r--r--lib/sanitizer_common/sanitizer_allocator.cc7
1 files changed, 0 insertions, 7 deletions
diff --git a/lib/sanitizer_common/sanitizer_allocator.cc b/lib/sanitizer_common/sanitizer_allocator.cc
index c43933061..b13a7c6c1 100644
--- a/lib/sanitizer_common/sanitizer_allocator.cc
+++ b/lib/sanitizer_common/sanitizer_allocator.cc
@@ -49,13 +49,6 @@ void InternalFree(void *addr) {
LIBC_FREE(addr);
}
-void *InternalAllocBlock(void *p) {
- CHECK_NE(p, (void*)0);
- u64 *pp = (u64*)((uptr)p & ~0x7);
- for (; pp[0] != kBlockMagic; pp--) {}
- return pp + 1;
-}
-
// LowLevelAllocator
static LowLevelAllocateCallback low_level_alloc_callback;