mirror of
https://git.h3cjp.net/H3cJP/yuzu.git
synced 2024-11-12 03:42:46 +00:00
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:
parent
d4c1b9d311
commit
15e3d4f357
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue