mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-11-23 05:40:09 +00:00
[libunwind][AIX] static_cast the value from getLR() to avoid the warning from -Wconversion (#69767)
This PR adds `static_cast` to the value returned from `getLR()` in the AIX unwinder to avoid warning in case `-Wconversion` is specified to build in 32-bit mode.
This commit is contained in:
parent
00d3ed6dea
commit
7c651a1fc0
@ -2404,7 +2404,7 @@ int UnwindCursor<A, R>::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<pint_t>(registers.getLR());
|
||||
_LIBUNWIND_TRACE_UNWINDING("Use saved LR=%p",
|
||||
reinterpret_cast<void *>(returnAddress));
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user