diff --git a/libunwind/src/UnwindCursor.hpp b/libunwind/src/UnwindCursor.hpp index f89c5b2c2f73e..647a5a9c9d92d 100644 --- a/libunwind/src/UnwindCursor.hpp +++ b/libunwind/src/UnwindCursor.hpp @@ -2404,7 +2404,7 @@ int UnwindCursor::stepWithTBTable(pint_t pc, tbtable *TBTable, if (!TBTable->tb.saves_lr && registers.getLR()) { // This case should only occur if we were called from a signal handler // and the signal occurred in a function that doesn't save the LR. - returnAddress = registers.getLR(); + returnAddress = static_cast(registers.getLR()); _LIBUNWIND_TRACE_UNWINDING("Use saved LR=%p", reinterpret_cast(returnAddress)); } else {