[compiler-rt] 1a84d1c - [compiler-rt][asan] Re-add `self`
Leonard Chan via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 17 15:49:16 PST 2021
Author: Leonard Chan
Date: 2021-11-17T15:48:41-08:00
New Revision: 1a84d1c81e1265ec09bcf8a636be3ec8585d5fc3
URL: https://github.com/llvm/llvm-project/commit/1a84d1c81e1265ec09bcf8a636be3ec8585d5fc3
DIFF: https://github.com/llvm/llvm-project/commit/1a84d1c81e1265ec09bcf8a636be3ec8585d5fc3.diff
LOG: [compiler-rt][asan] Re-add `self`
We ran into errors where this wasn't defined in Fuchsia's asan implementation.
Added:
Modified:
compiler-rt/lib/asan/asan_fuchsia.cpp
Removed:
################################################################################
diff --git a/compiler-rt/lib/asan/asan_fuchsia.cpp b/compiler-rt/lib/asan/asan_fuchsia.cpp
index 1d0fbb777257f..15381d5bd0e56 100644
--- a/compiler-rt/lib/asan/asan_fuchsia.cpp
+++ b/compiler-rt/lib/asan/asan_fuchsia.cpp
@@ -145,6 +145,7 @@ void AsanThread::SetThreadStackAndTls(const AsanThread::InitOptions *options) {
// Called by __asan::AsanInitInternal (asan_rtl.c).
AsanThread *CreateMainThread() {
+ thrd_t self = thrd_current();
char name[ZX_MAX_NAME_LEN];
CHECK_NE(__sanitizer::MainThreadStackBase, 0);
CHECK_GT(__sanitizer::MainThreadStackSize, 0);
More information about the llvm-commits
mailing list