summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/asan/asan_allocator.h
diff options
context:
space:
mode:
authorKostya Serebryany <kcc@google.com>2013-01-28 08:05:47 +0000
committerKostya Serebryany <kcc@google.com>2013-01-28 08:05:47 +0000
commit61761f182bf2a7a1dd69b931f4ed7ba85a02f280 (patch)
tree8cc3060a6c49db5e7a1dd95c4edd9687c5f185c9 /compiler-rt/lib/asan/asan_allocator.h
parent4ad42359866c319800e0098e99c7292e38113900 (diff)
downloadbcm5719-llvm-61761f182bf2a7a1dd69b931f4ed7ba85a02f280.tar.gz
bcm5719-llvm-61761f182bf2a7a1dd69b931f4ed7ba85a02f280.zip
[asan] fix a crash in asan stats printing (initialize the allocator in __asan_init)
llvm-svn: 173676
Diffstat (limited to 'compiler-rt/lib/asan/asan_allocator.h')
-rw-r--r--compiler-rt/lib/asan/asan_allocator.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler-rt/lib/asan/asan_allocator.h b/compiler-rt/lib/asan/asan_allocator.h
index cca24edad81..2de6b982ac7 100644
--- a/compiler-rt/lib/asan/asan_allocator.h
+++ b/compiler-rt/lib/asan/asan_allocator.h
@@ -42,6 +42,8 @@ enum AllocType {
static const uptr kNumberOfSizeClasses = 255;
struct AsanChunk;
+void InitializeAllocator();
+
class AsanChunkView {
public:
explicit AsanChunkView(AsanChunk *chunk) : chunk_(chunk) {}
OpenPOWER on IntegriCloud