[compiler-rt] 6c55f4b - [NFC][hwasan] Don't copy ThreadStartArg
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Mon May 29 23:50:20 PDT 2023
Author: Vitaly Buka
Date: 2023-05-29T23:50:14-07:00
New Revision: 6c55f4ba576652e45361b7788bc3f3092a7cd56b
URL: https://github.com/llvm/llvm-project/commit/6c55f4ba576652e45361b7788bc3f3092a7cd56b
DIFF: https://github.com/llvm/llvm-project/commit/6c55f4ba576652e45361b7788bc3f3092a7cd56b.diff
LOG: [NFC][hwasan] Don't copy ThreadStartArg
Added:
Modified:
compiler-rt/lib/hwasan/hwasan_interceptors.cpp
Removed:
################################################################################
diff --git a/compiler-rt/lib/hwasan/hwasan_interceptors.cpp b/compiler-rt/lib/hwasan/hwasan_interceptors.cpp
index f50a42d9d94ea..4eb5210e1b457 100644
--- a/compiler-rt/lib/hwasan/hwasan_interceptors.cpp
+++ b/compiler-rt/lib/hwasan/hwasan_interceptors.cpp
@@ -224,8 +224,8 @@ struct ThreadStartArg {
static void *HwasanThreadStartFunc(void *arg) {
__hwasan_thread_enter();
- ThreadStartArg A = *reinterpret_cast<ThreadStartArg *>(arg);
- SetSigProcMask(&A.starting_sigset_, nullptr);
+ SetSigProcMask(&reinterpret_cast<ThreadStartArg *>(arg)->starting_sigset_,
+ nullptr);
InternalFree(arg);
auto self = GetThreadSelf();
auto args = hwasanThreadArgRetval().GetArgs(self);
More information about the llvm-commits
mailing list