[compiler-rt] r340347 - Fixup for r340342: Avoid Block_release'ing the block since we're no longer making a copy.

Kuba Mracek via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 21 15:03:28 PDT 2018


Author: kuba.brecka
Date: Tue Aug 21 15:03:28 2018
New Revision: 340347

URL: http://llvm.org/viewvc/llvm-project?rev=340347&view=rev
Log:
Fixup for r340342: Avoid Block_release'ing the block since we're no longer making a copy.

rdar://problem/42242579


Modified:
    compiler-rt/trunk/lib/tsan/rtl/tsan_libdispatch_mac.cc

Modified: compiler-rt/trunk/lib/tsan/rtl/tsan_libdispatch_mac.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/tsan/rtl/tsan_libdispatch_mac.cc?rev=340347&r1=340346&r2=340347&view=diff
==============================================================================
--- compiler-rt/trunk/lib/tsan/rtl/tsan_libdispatch_mac.cc (original)
+++ compiler-rt/trunk/lib/tsan/rtl/tsan_libdispatch_mac.cc Tue Aug 21 15:03:28 2018
@@ -186,7 +186,7 @@ static void invoke_and_release_block(voi
                    DISPATCH_NOESCAPE dispatch_block_t block) {               \
     SCOPED_TSAN_INTERCEPTOR(name, q, block);                                 \
     tsan_block_context_t new_context = {                                     \
-        q, block, &invoke_and_release_block, false, true, barrier, 0};       \
+        q, block, &invoke_block, false, true, barrier, 0};                   \
     Release(thr, pc, (uptr)&new_context);                                    \
     SCOPED_TSAN_INTERCEPTOR_USER_CALLBACK_START();                           \
     REAL(name##_f)(q, &new_context, dispatch_callback_wrap);                 \




More information about the llvm-commits mailing list