diff options
author | kcc <kcc@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-12-05 13:19:55 +0000 |
---|---|---|
committer | kcc <kcc@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-12-05 13:19:55 +0000 |
commit | 4ab070fc750612ffbe12b7a67de3fa3e8d9d81ea (patch) | |
tree | 1a9c1fa8fc461362f209a6c9b1abdadaacf74938 /libsanitizer/sanitizer_common/sanitizer_allocator.cc | |
parent | 14799b23a661479a4f3d2ec15471afb3618af00d (diff) | |
download | gcc-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.cc | 7 |
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; |