yuzu-emu
/
yuzu-android
Archived
1
0
Fork 0

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
1 changed files with 1 additions and 1 deletions

View File

@ -128,7 +128,7 @@ static u8* GetPointerFromVMA(const Kernel::Process& process, VAddr vaddr) {
const auto& vm_manager = process.VMManager(); const auto& vm_manager = process.VMManager();
const auto it = vm_manager.FindVMA(vaddr); const auto it = vm_manager.FindVMA(vaddr);
ASSERT(vm_manager.IsValidHandle(it)); DEBUG_ASSERT(vm_manager.IsValidHandle(it));
u8* direct_pointer = nullptr; u8* direct_pointer = nullptr;
const auto& vma = it->second; const auto& vma = it->second;