summaryrefslogtreecommitdiff
path: root/src/core/memory.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2018-12-06 14:21:22 -0500
committerLioncash <mathew1800@gmail.com>2018-12-06 15:02:34 -0500
commit15e3d4f357f02275bc10818536f563b08f3326c9 (patch)
tree3e3b472f941963101648bc269e5397595b80d04b /src/core/memory.cpp
parentd4c1b9d311c978a6354574d09c451522ceb74e82 (diff)
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.
Diffstat (limited to 'src/core/memory.cpp')
-rw-r--r--src/core/memory.cpp2
1 files changed, 1 insertions, 1 deletions
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;