[compiler-rt] r312394 - Fix constant-logical-operand warning.
David Blaikie via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 1 16:57:34 PDT 2017
Author: dblaikie
Date: Fri Sep 1 16:57:34 2017
New Revision: 312394
URL: http://llvm.org/viewvc/llvm-project?rev=312394&view=rev
Log:
Fix constant-logical-operand warning.
Modified:
compiler-rt/trunk/lib/asan/asan_stack.h
Modified: compiler-rt/trunk/lib/asan/asan_stack.h
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/asan_stack.h?rev=312394&r1=312393&r2=312394&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/asan_stack.h (original)
+++ compiler-rt/trunk/lib/asan/asan_stack.h Fri Sep 1 16:57:34 2017
@@ -44,8 +44,9 @@ void GetStackTraceWithPcBpAndContext(Buf
// 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);
More information about the llvm-commits
mailing list