diff options
Diffstat (limited to 'compiler-rt/lib/lsan/lsan.h')
-rw-r--r-- | compiler-rt/lib/lsan/lsan.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler-rt/lib/lsan/lsan.h b/compiler-rt/lib/lsan/lsan.h index 451d0c25c8f..79e5a90fd16 100644 --- a/compiler-rt/lib/lsan/lsan.h +++ b/compiler-rt/lib/lsan/lsan.h @@ -49,7 +49,8 @@ void GetStackTrace(__sanitizer::BufferedStackTrace *stack, __sanitizer::uptr bp, void *context, bool fast) { uptr stack_top = 0, stack_bottom = 0; ThreadContext *t; - if (fast && (t = CurrentThreadContext())) { + if (__sanitizer::StackTrace::WillUseFastUnwind(fast) && + (t = CurrentThreadContext())) { stack_top = t->stack_end(); stack_bottom = t->stack_begin(); } |