[NFC] Return on SANITIZER_MIPS && !IsValidFrame
llvm-svn: 355372
This commit is contained in:
parent
b214bd4b71
commit
3d7e9c843b
|
@ -42,12 +42,12 @@ void __sanitizer::BufferedStackTrace::UnwindImpl(
|
|||
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);
|
||||
|
|
Loading…
Reference in New Issue