From 72ceebe33156a8e00e221a4d91f25c0b219ed554 Mon Sep 17 00:00:00 2001 From: emufan4568 Date: Sun, 28 Aug 2022 23:17:42 +0300 Subject: [PATCH] a64_emitter: Use fmt::ptr to format pointers --- src/backend/A64/emitter/a64_emitter.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/backend/A64/emitter/a64_emitter.cpp b/src/backend/A64/emitter/a64_emitter.cpp index efbb4767..cb8105c4 100644 --- a/src/backend/A64/emitter/a64_emitter.cpp +++ b/src/backend/A64/emitter/a64_emitter.cpp @@ -992,8 +992,8 @@ void ARM64XEmitter::B(CCFlags cond, const void* ptr) { distance >>= 2; ASSERT_MSG(IsInRangeImm19(distance), - "%s: Received too large distance: %p->%p %" PRIi64 " %" PRIx64, __func__, m_code, - ptr, distance, distance); + "%s: Received too large distance: %p->%p %" PRIi64 " %" PRIx64, __func__, fmt::ptr(m_code), + fmt::ptr(ptr), distance, distance); Write32((0x54 << 24) | (MaskImm19(distance) << 5) | cond); } @@ -1959,7 +1959,7 @@ void ARM64FloatEmitter::EmitLoadStoreImmediate(u8 size, u32 opc, IndexType type, ASSERT_MSG(!(imm & ((size - 1) >> 3)), "%s(INDEX_UNSIGNED) immediate offset must be aligned to size! " "(%d) (%p)", - __func__, imm, m_emit->GetCodePtr()); + __func__, imm, fmt::ptr(m_emit->GetCodePtr())); ASSERT_MSG(imm >= 0, "%s(INDEX_UNSIGNED) immediate offset must be positive!", __func__); if (size == 16) imm >>= 1;