Fix constant-logical-operand warning.

llvm-svn: 312394
This commit is contained in:
David Blaikie 2017-09-01 23:57:34 +00:00
parent f5addb18f2
commit 387d0964ba
1 changed files with 3 additions and 2 deletions

View File

@ -44,8 +44,9 @@ void GetStackTraceWithPcBpAndContext(BufferedStackTrace *stack, uptr max_depth,
// On FreeBSD the slow unwinding that leverages _Unwind_Backtrace()
// yields the call stack of the signal's handler and not of the code
// that raised the signal (as it does on Linux).
if ((SANITIZER_FREEBSD || SANITIZER_NETBSD) && t->isInDeadlySignal())
fast = true;
#if SANITIZER_FREEBSD || SANITIZER_NETBSD
if (t->isInDeadlySignal()) fast = true;
#endif
uptr stack_top = t->stack_top();
uptr stack_bottom = t->stack_bottom();
ScopedUnwinding unwind_scope(t);