[compiler-rt][asan] Re-add `self`

We ran into errors where this wasn't defined in Fuchsia's asan implementation.
This commit is contained in:
Leonard Chan 2021-11-17 15:47:40 -08:00
parent 22e66a97cb
commit 1a84d1c81e
1 changed files with 1 additions and 0 deletions

View File

@ -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);