forked from OSchip/llvm-project
tsan: remove unused caller_pc from TsanInterceptorContext
Reviewed By: melver Differential Revision: https://reviews.llvm.org/D107340
This commit is contained in:
parent
76fd3d4410
commit
7779f49bc1
|
@ -2230,7 +2230,6 @@ static int OnExit(ThreadState *thr) {
|
||||||
|
|
||||||
struct TsanInterceptorContext {
|
struct TsanInterceptorContext {
|
||||||
ThreadState *thr;
|
ThreadState *thr;
|
||||||
const uptr caller_pc;
|
|
||||||
const uptr pc;
|
const uptr pc;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -2271,17 +2270,17 @@ static void HandleRecvmsg(ThreadState *thr, uptr pc,
|
||||||
((TsanInterceptorContext *) ctx)->pc, (uptr) ptr, size, \
|
((TsanInterceptorContext *) ctx)->pc, (uptr) ptr, size, \
|
||||||
false)
|
false)
|
||||||
|
|
||||||
#define COMMON_INTERCEPTOR_ENTER(ctx, func, ...) \
|
#define COMMON_INTERCEPTOR_ENTER(ctx, func, ...) \
|
||||||
SCOPED_TSAN_INTERCEPTOR(func, __VA_ARGS__); \
|
SCOPED_TSAN_INTERCEPTOR(func, __VA_ARGS__); \
|
||||||
TsanInterceptorContext _ctx = {thr, caller_pc, pc}; \
|
TsanInterceptorContext _ctx = {thr, pc}; \
|
||||||
ctx = (void *)&_ctx; \
|
ctx = (void *)&_ctx; \
|
||||||
(void) ctx;
|
(void)ctx;
|
||||||
|
|
||||||
#define COMMON_INTERCEPTOR_ENTER_NOIGNORE(ctx, func, ...) \
|
#define COMMON_INTERCEPTOR_ENTER_NOIGNORE(ctx, func, ...) \
|
||||||
SCOPED_INTERCEPTOR_RAW(func, __VA_ARGS__); \
|
SCOPED_INTERCEPTOR_RAW(func, __VA_ARGS__); \
|
||||||
TsanInterceptorContext _ctx = {thr, caller_pc, pc}; \
|
TsanInterceptorContext _ctx = {thr, pc}; \
|
||||||
ctx = (void *)&_ctx; \
|
ctx = (void *)&_ctx; \
|
||||||
(void) ctx;
|
(void)ctx;
|
||||||
|
|
||||||
#define COMMON_INTERCEPTOR_FILE_OPEN(ctx, file, path) \
|
#define COMMON_INTERCEPTOR_FILE_OPEN(ctx, file, path) \
|
||||||
if (path) \
|
if (path) \
|
||||||
|
|
Loading…
Reference in New Issue