aboutsummaryrefslogtreecommitdiff
path: root/libunwind
diff options
context:
space:
mode:
authorxingxue-ibm <57193974+xingxue-ibm@users.noreply.github.com>2023-10-24 11:55:22 -0400
committerGitHub <noreply@github.com>2023-10-24 11:55:22 -0400
commit7c651a1fc006929674c0795086144f099c61ff8c (patch)
treee323d3471dc8000c0e38697b9a77c0a109e95951 /libunwind
parent00d3ed6deadb1d647b70ab37ac66ada6a550c1ba (diff)
downloadllvm-7c651a1fc006929674c0795086144f099c61ff8c.zip
llvm-7c651a1fc006929674c0795086144f099c61ff8c.tar.gz
llvm-7c651a1fc006929674c0795086144f099c61ff8c.tar.bz2
[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.
Diffstat (limited to 'libunwind')
-rw-r--r--libunwind/src/UnwindCursor.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libunwind/src/UnwindCursor.hpp b/libunwind/src/UnwindCursor.hpp
index f89c5b2..647a5a9 100644
--- a/libunwind/src/UnwindCursor.hpp
+++ b/libunwind/src/UnwindCursor.hpp
@@ -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 {