diff options
author | Florian Mayer <fmayer@google.com> | 2022-09-30 18:46:06 +0300 |
---|---|---|
committer | Florian Mayer <fmayer@google.com> | 2022-09-30 22:04:19 +0300 |
commit | f5c9931fefcab8de07a6c08c39b582fa58859dc9 (patch) | |
tree | ba6eeb4b24125cf65af422f2c86a164408b2618f /libunwind | |
parent | a48f018bb7d8fadc67c08e71409c31713daa0071 (diff) |
[libunwind] Fix compile error with CROSS_UNWINDING
Reviewed By: #libunwind, MaskRay, mgorny
Differential Revision: https://reviews.llvm.org/D134969
Diffstat (limited to 'libunwind')
-rw-r--r-- | libunwind/src/DwarfInstructions.hpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libunwind/src/DwarfInstructions.hpp b/libunwind/src/DwarfInstructions.hpp index 1901c8a8aee7..27432be56133 100644 --- a/libunwind/src/DwarfInstructions.hpp +++ b/libunwind/src/DwarfInstructions.hpp @@ -202,7 +202,10 @@ int DwarfInstructions<A, R>::stepWithDwarf(A &addressSpace, pint_t pc, pint_t cfa = getCFA(addressSpace, prolog, registers); (void)stage2; -#if defined(_LIBUNWIND_TARGET_AARCH64) + // __unw_step_stage2 is not used for cross unwinding, so we use + // __aarch64__ rather than LIBUNWIND_TARGET_AARCH64 to make sure we are + // building for AArch64 natively. +#if defined(__aarch64__) if (stage2 && cieInfo.mteTaggedFrame) { pint_t sp = registers.getSP(); pint_t p = sp; |