[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
This commit is contained in:
Derek Bruening 2016-04-25 03:56:20 +00:00
parent 884455e9bd
commit 3441644245
1 changed files with 2 additions and 0 deletions

View File

@ -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)