diff options
Diffstat (limited to 'compiler-rt/lib/tsan/rtl/tsan_rtl.cc')
-rw-r--r-- | compiler-rt/lib/tsan/rtl/tsan_rtl.cc | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/compiler-rt/lib/tsan/rtl/tsan_rtl.cc b/compiler-rt/lib/tsan/rtl/tsan_rtl.cc index 0c520305e62..d81f44254d3 100644 --- a/compiler-rt/lib/tsan/rtl/tsan_rtl.cc +++ b/compiler-rt/lib/tsan/rtl/tsan_rtl.cc @@ -38,11 +38,9 @@ THREADLOCAL char cur_thread_placeholder[sizeof(ThreadState)] ALIGNED(64); static char ctx_placeholder[sizeof(Context)] ALIGNED(64); // Can be overriden by a front-end. -#ifndef TSAN_GO -bool WEAK OnFinalize(bool failed) { +bool CPP_WEAK OnFinalize(bool failed) { return failed; } -#endif static Context *ctx; Context *CTX() { @@ -284,9 +282,7 @@ int Finalize(ThreadState *thr) { ctx->nmissed_expected); } -#ifndef TSAN_GO failed = OnFinalize(failed); -#endif StatAggregate(ctx->stat, thr->stat); StatOutput(ctx->stat); |