summaryrefslogtreecommitdiff
path: root/lib/asan/asan_interceptors.h
diff options
context:
space:
mode:
authorKostya Serebryany <kcc@google.com>2014-05-14 14:03:31 +0000
committerKostya Serebryany <kcc@google.com>2014-05-14 14:03:31 +0000
commit4dbaff410b480a0922644b45f1044a52a58a07c7 (patch)
treeb51ade991ce1202e64a64104f61e87b803132f37 /lib/asan/asan_interceptors.h
parent91e57ee6f179d7c94f6ac11403ee60f31125de35 (diff)
[asan] use some LIKELY/UNLIKELY
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@208776 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/asan/asan_interceptors.h')
-rw-r--r--lib/asan/asan_interceptors.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/asan/asan_interceptors.h b/lib/asan/asan_interceptors.h
index ecdf1f026..3b7b2653b 100644
--- a/lib/asan/asan_interceptors.h
+++ b/lib/asan/asan_interceptors.h
@@ -96,7 +96,7 @@ void InitializeAsanInterceptors();
#define ENSURE_ASAN_INITED() do { \
CHECK(!asan_init_is_running); \
- if (!asan_inited) { \
+ if (UNLIKELY(!asan_inited)) { \
AsanInitFromRtl(); \
} \
} while (0)