[PATCH] D46459: [asan] Make GetCurrentThread RTEMS-friendly
Vitaly Buka via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri May 18 10:26:33 PDT 2018
vitalybuka added inline comments.
================
Comment at: compiler-rt/lib/asan/asan_thread.cc:394
+ return nullptr;
+
AsanThreadContext *context =
----------------
What if you just put here and we avoid platform specific branch
```
if (UNLIKELY(!asan_inited))
AsanInitFromRtl();
```
!asan_inited is not expected here on any other platform
Repository:
rL LLVM
https://reviews.llvm.org/D46459
More information about the llvm-commits
mailing list