[compiler-rt] r355372 - [NFC] Return on SANITIZER_MIPS && !IsValidFrame

Vitaly Buka via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 4 18:51:04 PST 2019


Author: vitalybuka
Date: Mon Mar  4 18:51:04 2019
New Revision: 355372

URL: http://llvm.org/viewvc/llvm-project?rev=355372&view=rev
Log:
[NFC] Return on SANITIZER_MIPS && !IsValidFrame

Modified:
    compiler-rt/trunk/lib/asan/asan_stack.cc

Modified: compiler-rt/trunk/lib/asan/asan_stack.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/asan_stack.cc?rev=355372&r1=355371&r2=355372&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/asan_stack.cc (original)
+++ compiler-rt/trunk/lib/asan/asan_stack.cc Mon Mar  4 18:51:04 2019
@@ -42,12 +42,12 @@ void __sanitizer::BufferedStackTrace::Un
     uptr stack_top = t->stack_top();
     uptr stack_bottom = t->stack_bottom();
     ScopedUnwinding unwind_scope(t);
-    if (!SANITIZER_MIPS || IsValidFrame(bp, stack_top, stack_bottom)) {
-      if (StackTrace::WillUseFastUnwind(request_fast))
-        Unwind(max_depth, pc, bp, nullptr, stack_top, stack_bottom, true);
-      else
-        Unwind(max_depth, pc, bp, context, 0, 0, false);
-    }
+    if (SANITIZER_MIPS && !IsValidFrame(bp, stack_top, stack_bottom))
+      return;
+    if (StackTrace::WillUseFastUnwind(request_fast))
+      Unwind(max_depth, pc, bp, nullptr, stack_top, stack_bottom, true);
+    else
+      Unwind(max_depth, pc, bp, context, 0, 0, false);
   } else if (!t && !request_fast) {
     /* If GetCurrentThread() has failed, try to do slow unwind anyways. */
     Unwind(max_depth, pc, bp, context, 0, 0, false);




More information about the llvm-commits mailing list