From 4ac66c49da86be32caff3a3af46266936050b53e Mon Sep 17 00:00:00 2001 From: Alexey Samsonov Date: Fri, 16 Nov 2012 11:21:07 +0000 Subject: [PATCH] [TSan] use explicit ctor for BlockingCall llvm-svn: 168150 --- compiler-rt/lib/tsan/rtl/tsan_interceptors.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc b/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc index af92912..379de0b 100644 --- a/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc +++ b/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc @@ -163,7 +163,7 @@ ScopedInterceptor::~ScopedInterceptor() { #define BLOCK_REAL(name) (BlockingCall(thr), REAL(name)) struct BlockingCall { - BlockingCall(ThreadState *thr) + explicit BlockingCall(ThreadState *thr) : ctx(SigCtx(thr)) { CHECK_EQ(ctx->in_blocking_func, 0); ctx->in_blocking_func++; -- 2.7.4