diff --git a/compiler-rt/lib/sanitizer_common/tests/sanitizer_stacktrace_test.cpp b/compiler-rt/lib/sanitizer_common/tests/sanitizer_stacktrace_test.cpp --- a/compiler-rt/lib/sanitizer_common/tests/sanitizer_stacktrace_test.cpp +++ b/compiler-rt/lib/sanitizer_common/tests/sanitizer_stacktrace_test.cpp @@ -44,7 +44,7 @@ uhwptr fake_bottom; BufferedStackTrace trace; -#if defined(__riscv) +#if defined(__loongarch__) || defined(__riscv) const uptr kFpOffset = 4; const uptr kBpOffset = 2; #else