diff --git a/compiler-rt/lib/tsan/go/tsan_go.cpp b/compiler-rt/lib/tsan/go/tsan_go.cpp --- a/compiler-rt/lib/tsan/go/tsan_go.cpp +++ b/compiler-rt/lib/tsan/go/tsan_go.cpp @@ -99,7 +99,7 @@ MBlock *b = ctx->metamap.GetBlock(cbctx.start); if (!b) return 0; - auto loc = New(); + auto *loc = New(); loc->type = ReportLocationHeap; loc->heap_chunk_start = cbctx.start; loc->heap_chunk_size = b->siz; @@ -107,7 +107,7 @@ loc->stack = SymbolizeStackId(b->stk); return loc; } else { - auto loc = New(); + auto *loc = New(); loc->type = ReportLocationGlobal; loc->global.name = internal_strdup(cbctx.name ? cbctx.name : "??"); loc->global.file = internal_strdup(cbctx.file ? cbctx.file : "??"); @@ -140,7 +140,7 @@ extern "C" { static ThreadState *AllocGoroutine() { - auto thr = (ThreadState *)Alloc(sizeof(ThreadState)); + auto *thr = (ThreadState *)Alloc(sizeof(ThreadState)); internal_memset(thr, 0, sizeof(*thr)); return thr; } diff --git a/compiler-rt/lib/tsan/rtl/tsan_rtl.cpp b/compiler-rt/lib/tsan/rtl/tsan_rtl.cpp --- a/compiler-rt/lib/tsan/rtl/tsan_rtl.cpp +++ b/compiler-rt/lib/tsan/rtl/tsan_rtl.cpp @@ -562,7 +562,7 @@ void GrowShadowStack(ThreadState *thr) { const int sz = thr->shadow_stack_end - thr->shadow_stack; const int newsz = 2 * sz; - auto newstack = (uptr *)Alloc(newsz * sizeof(uptr)); + auto *newstack = (uptr *)Alloc(newsz * sizeof(uptr)); internal_memcpy(newstack, thr->shadow_stack, sz * sizeof(uptr)); Free(thr->shadow_stack); thr->shadow_stack = newstack;