[compiler-rt] r332553 - [asan] Restore check removed by r332033
Walter Lee via llvm-commits
llvm-commits at lists.llvm.org
Wed May 16 16:23:56 PDT 2018
Author: waltl
Date: Wed May 16 16:23:56 2018
New Revision: 332553
URL: http://llvm.org/viewvc/llvm-project?rev=332553&view=rev
Log:
[asan] Restore check removed by r332033
Needed by fiber handling code, and possibly other code paths.
Differential Revision: https://reviews.llvm.org/D46981
Modified:
compiler-rt/trunk/lib/asan/asan_thread.h
Modified: compiler-rt/trunk/lib/asan/asan_thread.h
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/asan_thread.h?rev=332553&r1=332552&r2=332553&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/asan_thread.h (original)
+++ compiler-rt/trunk/lib/asan/asan_thread.h Wed May 16 16:23:56 2018
@@ -117,6 +117,8 @@ class AsanThread {
return nullptr;
if (atomic_load(&stack_switching_, memory_order_relaxed))
return nullptr;
+ if (!has_fake_stack())
+ return AsyncSignalSafeLazyInitFakeStack();
return fake_stack_;
}
More information about the llvm-commits
mailing list