From 387d0964ba9eb98c7365466e0912d05b14e3a584 Mon Sep 17 00:00:00 2001 From: David Blaikie Date: Fri, 1 Sep 2017 23:57:34 +0000 Subject: [PATCH] Fix constant-logical-operand warning. llvm-svn: 312394 --- compiler-rt/lib/asan/asan_stack.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/compiler-rt/lib/asan/asan_stack.h b/compiler-rt/lib/asan/asan_stack.h index 324cd3ddd525..9f7b102c67c9 100644 --- a/compiler-rt/lib/asan/asan_stack.h +++ b/compiler-rt/lib/asan/asan_stack.h @@ -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);