From 559426ae7695321a4609ae6799455f86cbfc2257 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Tue, 3 Aug 2021 12:29:23 +0200 Subject: [PATCH] tsan: use Tid/StackID types in MBlock Replace more raw types with Tid/StackID typedefs. Reviewed By: melver Differential Revision: https://reviews.llvm.org/D107335 --- compiler-rt/lib/tsan/rtl/tsan_defs.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compiler-rt/lib/tsan/rtl/tsan_defs.h b/compiler-rt/lib/tsan/rtl/tsan_defs.h index b0b2d65755b5..6212c82be910 100644 --- a/compiler-rt/lib/tsan/rtl/tsan_defs.h +++ b/compiler-rt/lib/tsan/rtl/tsan_defs.h @@ -184,8 +184,8 @@ class RegionAlloc; struct MBlock { u64 siz : 48; u64 tag : 16; - u32 stk; - u16 tid; + StackID stk; + Tid tid; }; COMPILER_CHECK(sizeof(MBlock) == 16);