diff options
| author | Lioncash <mathew1800@gmail.com> | 2018-12-06 14:21:22 -0500 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2018-12-06 15:02:34 -0500 |
| commit | 70f16242ca5cd8344085e4af7c3aa9a32f1c6b23 (patch) | |
| tree | 3e3b472f941963101648bc269e5397595b80d04b /src/core/memory.cpp | |
| parent | bfb412a71ad1391cdbf5569679b2662c0e350b16 (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.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/memory.cpp b/src/core/memory.cpp index 76f468c788..643afdee87 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; |
