Commit 7779f49b authored by Dmitry Vyukov's avatar Dmitry Vyukov
Browse files

tsan: remove unused caller_pc from TsanInterceptorContext

Reviewed By: melver

Differential Revision: https://reviews.llvm.org/D107340
parent 76fd3d44
Loading
Loading
Loading
Loading
+7 −8
Original line number Diff line number Diff line
@@ -2230,7 +2230,6 @@ static int OnExit(ThreadState *thr) {

struct TsanInterceptorContext {
  ThreadState *thr;
  const uptr caller_pc;
  const uptr pc;
};

@@ -2273,13 +2272,13 @@ static void HandleRecvmsg(ThreadState *thr, uptr pc,

#define COMMON_INTERCEPTOR_ENTER(ctx, func, ...) \
  SCOPED_TSAN_INTERCEPTOR(func, __VA_ARGS__);    \
  TsanInterceptorContext _ctx = {thr, caller_pc, pc}; \
  TsanInterceptorContext _ctx = {thr, pc};       \
  ctx = (void *)&_ctx;                           \
  (void)ctx;

#define COMMON_INTERCEPTOR_ENTER_NOIGNORE(ctx, func, ...) \
  SCOPED_INTERCEPTOR_RAW(func, __VA_ARGS__);              \
  TsanInterceptorContext _ctx = {thr, caller_pc, pc};     \
  TsanInterceptorContext _ctx = {thr, pc};                \
  ctx = (void *)&_ctx;                                    \
  (void)ctx;