Skip to content

Commit 3d7e9c8

Browse files
committed
[NFC] Return on SANITIZER_MIPS && !IsValidFrame
llvm-svn: 355372
1 parent b214bd4 commit 3d7e9c8

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

compiler-rt/lib/asan/asan_stack.cc

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,12 @@ void __sanitizer::BufferedStackTrace::UnwindImpl(
4242
uptr stack_top = t->stack_top();
4343
uptr stack_bottom = t->stack_bottom();
4444
ScopedUnwinding unwind_scope(t);
45-
if (!SANITIZER_MIPS || IsValidFrame(bp, stack_top, stack_bottom)) {
46-
if (StackTrace::WillUseFastUnwind(request_fast))
47-
Unwind(max_depth, pc, bp, nullptr, stack_top, stack_bottom, true);
48-
else
49-
Unwind(max_depth, pc, bp, context, 0, 0, false);
50-
}
45+
if (SANITIZER_MIPS && !IsValidFrame(bp, stack_top, stack_bottom))
46+
return;
47+
if (StackTrace::WillUseFastUnwind(request_fast))
48+
Unwind(max_depth, pc, bp, nullptr, stack_top, stack_bottom, true);
49+
else
50+
Unwind(max_depth, pc, bp, context, 0, 0, false);
5151
} else if (!t && !request_fast) {
5252
/* If GetCurrentThread() has failed, try to do slow unwind anyways. */
5353
Unwind(max_depth, pc, bp, context, 0, 0, false);

0 commit comments

Comments
 (0)