[compiler-rt] 559426a - tsan: use Tid/StackID types in MBlock
Dmitry Vyukov via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 3 03:43:09 PDT 2021
Author: Dmitry Vyukov
Date: 2021-08-03T12:43:02+02:00
New Revision: 559426ae7695321a4609ae6799455f86cbfc2257
URL: https://github.com/llvm/llvm-project/commit/559426ae7695321a4609ae6799455f86cbfc2257
DIFF: https://github.com/llvm/llvm-project/commit/559426ae7695321a4609ae6799455f86cbfc2257.diff
LOG: 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
Added:
Modified:
compiler-rt/lib/tsan/rtl/tsan_defs.h
Removed:
################################################################################
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);
More information about the llvm-commits
mailing list