summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--compiler-rt/lib/esan/esan_interceptors.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler-rt/lib/esan/esan_interceptors.cpp b/compiler-rt/lib/esan/esan_interceptors.cpp
index 3973aa48b1d..6c535c5b225 100644
--- a/compiler-rt/lib/esan/esan_interceptors.cpp
+++ b/compiler-rt/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)
OpenPOWER on IntegriCloud