From 15e3d4f357f02275bc10818536f563b08f3326c9 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Thu, 6 Dec 2018 14:21:22 -0500 Subject: memory: Convert ASSERT into a DEBUG_ASSERT within GetPointerFromVMA() Given memory should always be expected to be valid during normal execution, this should be a debug assertion, rather than a check in regular builds. --- src/core/memory.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/core/memory.cpp b/src/core/memory.cpp index 76f468c78..643afdee8 100644 --- a/src/core/memory.cpp +++ b/src/core/memory.cpp @@ -128,7 +128,7 @@ static u8* GetPointerFromVMA(const Kernel::Process& process, VAddr vaddr) { const auto& vm_manager = process.VMManager(); const auto it = vm_manager.FindVMA(vaddr); - ASSERT(vm_manager.IsValidHandle(it)); + DEBUG_ASSERT(vm_manager.IsValidHandle(it)); u8* direct_pointer = nullptr; const auto& vma = it->second; -- cgit v1.2.3