summaryrefslogtreecommitdiff
path: root/libsanitizer/sanitizer_common/sanitizer_allocator.cc
diff options
context:
space:
mode:
authorkcc <kcc@138bc75d-0d04-0410-961f-82ee72b054a4>2012-12-05 13:19:55 +0000
committerkcc <kcc@138bc75d-0d04-0410-961f-82ee72b054a4>2012-12-05 13:19:55 +0000
commit4ab070fc750612ffbe12b7a67de3fa3e8d9d81ea (patch)
tree1a9c1fa8fc461362f209a6c9b1abdadaacf74938 /libsanitizer/sanitizer_common/sanitizer_allocator.cc
parent14799b23a661479a4f3d2ec15471afb3618af00d (diff)
downloadgcc-4ab070fc750612ffbe12b7a67de3fa3e8d9d81ea.tar.gz
[libsanitizer] merge from upstream r169371
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194221 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libsanitizer/sanitizer_common/sanitizer_allocator.cc')
-rw-r--r--libsanitizer/sanitizer_common/sanitizer_allocator.cc7
1 files changed, 0 insertions, 7 deletions
diff --git a/libsanitizer/sanitizer_common/sanitizer_allocator.cc b/libsanitizer/sanitizer_common/sanitizer_allocator.cc
index 88905b7beb1..d09112705f5 100644
--- a/libsanitizer/sanitizer_common/sanitizer_allocator.cc
+++ b/libsanitizer/sanitizer_common/sanitizer_allocator.cc
@@ -47,13 +47,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;