From 249cd9af9c89cd2c8cd921aa45336d2e5f73e4dd Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Mon, 24 Feb 2014 08:19:53 +0000 Subject: [PATCH] tsan: fix compiler warning error: address of array 'tctx->name' will always evaluate to 'true' llvm-svn: 202008 --- compiler-rt/lib/tsan/rtl/tsan_rtl_report.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler-rt/lib/tsan/rtl/tsan_rtl_report.cc b/compiler-rt/lib/tsan/rtl/tsan_rtl_report.cc index 9d88a687a689..a892f4297a5b 100644 --- a/compiler-rt/lib/tsan/rtl/tsan_rtl_report.cc +++ b/compiler-rt/lib/tsan/rtl/tsan_rtl_report.cc @@ -212,7 +212,7 @@ void ScopedReport::AddThread(const ThreadContext *tctx) { rt->id = tctx->tid; rt->pid = tctx->os_id; rt->running = (tctx->status == ThreadStatusRunning); - rt->name = tctx->name ? internal_strdup(tctx->name) : 0; + rt->name = internal_strdup(tctx->name); rt->parent_tid = tctx->parent_tid; rt->stack = 0; #ifdef TSAN_GO