diff options
| author | Walter Lee <waltl@google.com> | 2018-05-16 23:23:56 +0000 |
|---|---|---|
| committer | Walter Lee <waltl@google.com> | 2018-05-16 23:23:56 +0000 |
| commit | 3bf63c920185530df55a8b0c42158febfbb5450d (patch) | |
| tree | 436081d2fa65509cbfe10bcc5c5bf4326058aaaf /compiler-rt/lib | |
| parent | 5a0872c2b751fd339e10c1b9d29ed4a9e62a323d (diff) | |
| download | bcm5719-llvm-3bf63c920185530df55a8b0c42158febfbb5450d.tar.gz bcm5719-llvm-3bf63c920185530df55a8b0c42158febfbb5450d.zip | |
[asan] Restore check removed by r332033
Needed by fiber handling code, and possibly other code paths.
Differential Revision: https://reviews.llvm.org/D46981
llvm-svn: 332553
Diffstat (limited to 'compiler-rt/lib')
| -rw-r--r-- | compiler-rt/lib/asan/asan_thread.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler-rt/lib/asan/asan_thread.h b/compiler-rt/lib/asan/asan_thread.h index a3052ec8004..66091921101 100644 --- a/compiler-rt/lib/asan/asan_thread.h +++ b/compiler-rt/lib/asan/asan_thread.h @@ -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_; } |

