diff options
| author | 2018-12-06 14:21:22 -0500 | |
|---|---|---|
| committer | 2018-12-06 15:02:34 -0500 | |
| commit | 15e3d4f357f02275bc10818536f563b08f3326c9 (patch) | |
| tree | 3e3b472f941963101648bc269e5397595b80d04b /src/core/memory.cpp | |
| parent | vm_manager: Make vma_map private (diff) | |
| download | yuzu-15e3d4f357f02275bc10818536f563b08f3326c9.tar.gz yuzu-15e3d4f357f02275bc10818536f563b08f3326c9.tar.xz yuzu-15e3d4f357f02275bc10818536f563b08f3326c9.zip | |
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 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) { | |||
| 128 | const auto& vm_manager = process.VMManager(); | 128 | const auto& vm_manager = process.VMManager(); |
| 129 | 129 | ||
| 130 | const auto it = vm_manager.FindVMA(vaddr); | 130 | const auto it = vm_manager.FindVMA(vaddr); |
| 131 | ASSERT(vm_manager.IsValidHandle(it)); | 131 | DEBUG_ASSERT(vm_manager.IsValidHandle(it)); |
| 132 | 132 | ||
| 133 | u8* direct_pointer = nullptr; | 133 | u8* direct_pointer = nullptr; |
| 134 | const auto& vma = it->second; | 134 | const auto& vma = it->second; |