From 6792380482d2a0dd466a3efb607d43dd169af4f5 Mon Sep 17 00:00:00 2001 From: Stephen Miller Date: Wed, 7 May 2025 22:07:30 -0500 Subject: [PATCH] Clang --- src/core/memory.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/core/memory.cpp b/src/core/memory.cpp index fddee3187..3cc8a69a7 100644 --- a/src/core/memory.cpp +++ b/src/core/memory.cpp @@ -154,7 +154,7 @@ PAddr MemoryManager::Allocate(PAddr search_start, PAddr search_end, size_t size, if (dmem_area == dmem_map.end()) { break; } - + // Update local variables based on the new dmem_area mapping_start = Common::AlignUp(dmem_area->second.base, alignment); mapping_end = mapping_start + size; @@ -601,8 +601,8 @@ s32 MemoryManager::Protect(VAddr addr, size_t size, MemoryProt prot) { do { auto it = FindVMA(addr + protected_bytes); auto& vma_base = it->second; - ASSERT_MSG(vma_base.Contains(addr + protected_bytes, 0), - "Address {:#x} is out of bounds", addr + protected_bytes); + ASSERT_MSG(vma_base.Contains(addr + protected_bytes, 0), "Address {:#x} is out of bounds", + addr + protected_bytes); auto result = 0; result = ProtectBytes(addr + protected_bytes, vma_base, size - protected_bytes, prot); if (result < 0) { @@ -751,7 +751,8 @@ VAddr MemoryManager::SearchFree(VAddr virtual_addr, size_t size, u32 alignment) // If the requested address is beyond the maximum our code can handle, throw an assert auto max_search_address = impl.UserVirtualBase() + impl.UserVirtualSize(); - ASSERT_MSG(virtual_addr <= max_search_address, "Input address {:#x} is out of bounds", virtual_addr); + ASSERT_MSG(virtual_addr <= max_search_address, "Input address {:#x} is out of bounds", + virtual_addr); auto it = FindVMA(virtual_addr);