summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDerek Bruening <bruening@google.com>2016-04-25 03:56:20 +0000
committerDerek Bruening <bruening@google.com>2016-04-25 03:56:20 +0000
commitffd60c7d05623a8d37f06c4ac7307c11851d2f52 (patch)
tree4b1a90de1936637ef0c30ae09a7644e2f291f1fc /lib
parent5d4cf0cc374036478e6227110f022fed3fe4df52 (diff)
[esan] Fix uninitialized warning from interception context
The interception context is not used by esan, but the compiler complains about it being uninitialized all the same. We set it to null to avoid the warning. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@267376 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/esan/esan_interceptors.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/esan/esan_interceptors.cpp b/lib/esan/esan_interceptors.cpp
index 3973aa48b..6c535c5b2 100644
--- a/lib/esan/esan_interceptors.cpp
+++ b/lib/esan/esan_interceptors.cpp
@@ -44,11 +44,13 @@ using namespace __esan; // NOLINT
#define COMMON_INTERCEPT_FUNCTION(name) INTERCEPT_FUNCTION(name)
+// We currently do not use ctx.
#define COMMON_INTERCEPTOR_ENTER(ctx, func, ...) \
do { \
if (UNLIKELY(COMMON_INTERCEPTOR_NOTHING_IS_INITIALIZED)) { \
return REAL(func)(__VA_ARGS__); \
} \
+ ctx = nullptr; \
(void)ctx; \
} while (false)