[asan] fix IsDeadlySignal
authorKostya Serebryany <kcc@google.com>
Tue, 5 May 2015 21:38:50 +0000 (21:38 +0000)
committerKostya Serebryany <kcc@google.com>
Tue, 5 May 2015 21:38:50 +0000 (21:38 +0000)
llvm-svn: 236545

compiler-rt/lib/sanitizer_common/sanitizer_linux.cc

index 78f82d6..d1cf1f5 100644 (file)
@@ -907,8 +907,8 @@ void GetExtraActivationFlags(char *buf, uptr size) {
 #endif
 
 bool IsDeadlySignal(int signum) {
-  if (common_flags()->handle_abort)
-    return signum == SIGABRT;
+  if (common_flags()->handle_abort && signum == SIGABRT)
+    return true;
   return (signum == SIGSEGV || signum == SIGBUS) && common_flags()->handle_segv;
 }