diff --git a/lldb/source/Expression/IRMemoryMap.cpp b/lldb/source/Expression/IRMemoryMap.cpp --- a/lldb/source/Expression/IRMemoryMap.cpp +++ b/lldb/source/Expression/IRMemoryMap.cpp @@ -330,7 +330,7 @@ LLDB_LOGF(log, "IRMemoryMap::%s process_sp=0x%" PRIx64 ", process_sp->CanJIT()=%s, process_sp->IsAlive()=%s", - __FUNCTION__, (lldb::addr_t)process_sp.get(), + __FUNCTION__, (uint64_t)(uintptr_t)process_sp.get(), process_sp && process_sp->CanJIT() ? "true" : "false", process_sp && process_sp->IsAlive() ? "true" : "false"); if (process_sp && process_sp->CanJIT() && process_sp->IsAlive()) { diff --git a/lldb/source/Plugins/Process/POSIX/CrashReason.cpp b/lldb/source/Plugins/Process/POSIX/CrashReason.cpp --- a/lldb/source/Plugins/Process/POSIX/CrashReason.cpp +++ b/lldb/source/Plugins/Process/POSIX/CrashReason.cpp @@ -136,15 +136,14 @@ #if defined(si_lower) && defined(si_upper) if (reason == CrashReason::eBoundViolation) { str = "signal SIGSEGV"; - AppendBounds(str, reinterpret_cast(info.si_lower), - reinterpret_cast(info.si_upper), - reinterpret_cast(info.si_addr)); + AppendBounds(str, (lldb::addr_t)(uintptr_t)info.si_lower, + (lldb::addr_t)(uintptr_t)info.si_upper, + (lldb::addr_t)(uintptr_t)info.si_addr); return str; } #endif - return GetCrashReasonString(reason, - reinterpret_cast(info.si_addr)); + return GetCrashReasonString(reason, (lldb::addr_t)(uintptr_t)info.si_addr); } std::string GetCrashReasonString(CrashReason reason, lldb::addr_t fault_addr) {