Skip to content

Commit

Permalink
[libunwind] Fix compile error with CROSS_UNWINDING
Browse files Browse the repository at this point in the history
Reviewed By: #libunwind, MaskRay, mgorny

Differential Revision: https://reviews.llvm.org/D134969
  • Loading branch information
fmayer committed Sep 30, 2022
1 parent a48f018 commit f5c9931
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion libunwind/src/DwarfInstructions.hpp
Expand Up @@ -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;
Expand Down

0 comments on commit f5c9931

Please sign in to comment.