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.
This commit is contained in:
Lioncash 2018-12-06 14:21:22 -05:00
parent d4c1b9d311
commit 15e3d4f357

View File

@ -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;