summaryrefslogtreecommitdiffstats
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
commit3441644245b6986d746d82a55e0788071738dadf (patch)
treef91e2404807d4ca22a884ed301102a54df11e8c4
parent884455e9bd42de4ec2400c6e79ca1a9109aed9f4 (diff)
downloadbcm5719-llvm-3441644245b6986d746d82a55e0788071738dadf.tar.gz
bcm5719-llvm-3441644245b6986d746d82a55e0788071738dadf.zip
[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. llvm-svn: 267376
-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