[libunwind] 42b5dab - [libunwind][AIX] Cast NULL as type uintptr_t. (#93204)
via cfe-commits
cfe-commits at lists.llvm.org
Thu May 23 13:06:25 PDT 2024
Author: Xing Xue
Date: 2024-05-23T16:06:21-04:00
New Revision: 42b5daba504a8b4fd60a57dde93ee5d0118abf0b
URL: https://github.com/llvm/llvm-project/commit/42b5daba504a8b4fd60a57dde93ee5d0118abf0b
DIFF: https://github.com/llvm/llvm-project/commit/42b5daba504a8b4fd60a57dde93ee5d0118abf0b.diff
LOG: [libunwind][AIX] Cast NULL as type uintptr_t. (#93204)
Casting NULL as type `uintptr_t` to allow type checking in both 32-bit
and 64-bit mode.
Added:
Modified:
libunwind/src/UnwindCursor.hpp
Removed:
################################################################################
diff --git a/libunwind/src/UnwindCursor.hpp b/libunwind/src/UnwindCursor.hpp
index 7753936a5894a..66fe8e2a32cca 100644
--- a/libunwind/src/UnwindCursor.hpp
+++ b/libunwind/src/UnwindCursor.hpp
@@ -2416,7 +2416,7 @@ int UnwindCursor<A, R>::stepWithTBTable(pint_t pc, tbtable *TBTable,
}
// Reset LR in the current context.
- newRegisters.setLR(NULL);
+ newRegisters.setLR(static_cast<uintptr_t>(NULL));
_LIBUNWIND_TRACE_UNWINDING(
"Extract info from lastStack=%p, returnAddress=%p",
More information about the cfe-commits
mailing list