[compiler-rt] 7779f49 - tsan: remove unused caller_pc from TsanInterceptorContext
Dmitry Vyukov via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 3 07:17:51 PDT 2021
Author: Dmitry Vyukov
Date: 2021-08-03T16:17:44+02:00
New Revision: 7779f49bc1f00eff3aba590a8e960d22a595f69f
URL: https://github.com/llvm/llvm-project/commit/7779f49bc1f00eff3aba590a8e960d22a595f69f
DIFF: https://github.com/llvm/llvm-project/commit/7779f49bc1f00eff3aba590a8e960d22a595f69f.diff
LOG: tsan: remove unused caller_pc from TsanInterceptorContext
Reviewed By: melver
Differential Revision: https://reviews.llvm.org/D107340
Added:
Modified:
compiler-rt/lib/tsan/rtl/tsan_interceptors_posix.cpp
Removed:
################################################################################
diff --git a/compiler-rt/lib/tsan/rtl/tsan_interceptors_posix.cpp b/compiler-rt/lib/tsan/rtl/tsan_interceptors_posix.cpp
index f2a8f7ada749..f1a487897418 100644
--- a/compiler-rt/lib/tsan/rtl/tsan_interceptors_posix.cpp
+++ b/compiler-rt/lib/tsan/rtl/tsan_interceptors_posix.cpp
@@ -2230,7 +2230,6 @@ static int OnExit(ThreadState *thr) {
struct TsanInterceptorContext {
ThreadState *thr;
- const uptr caller_pc;
const uptr pc;
};
@@ -2271,17 +2270,17 @@ static void HandleRecvmsg(ThreadState *thr, uptr pc,
((TsanInterceptorContext *) ctx)->pc, (uptr) ptr, size, \
false)
-#define COMMON_INTERCEPTOR_ENTER(ctx, func, ...) \
- SCOPED_TSAN_INTERCEPTOR(func, __VA_ARGS__); \
- TsanInterceptorContext _ctx = {thr, caller_pc, pc}; \
- ctx = (void *)&_ctx; \
- (void) ctx;
+#define COMMON_INTERCEPTOR_ENTER(ctx, func, ...) \
+ SCOPED_TSAN_INTERCEPTOR(func, __VA_ARGS__); \
+ 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;
+ (void)ctx;
#define COMMON_INTERCEPTOR_FILE_OPEN(ctx, file, path) \
if (path) \
More information about the llvm-commits
mailing list