[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:
xingxue-ibm 2023-10-24 11:55:22 -04:00 committed by GitHub
parent 00d3ed6dea
commit 7c651a1fc0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 {