Browse Source

memory: remove DEBUG_ASSERT pointer test

Liam 3 năm trước cách đây
mục cha
commit
985ed1e160
1 tập tin đã thay đổi với 0 bổ sung2 xóa
  1. 0 2
      src/core/memory.cpp

+ 0 - 2
src/core/memory.cpp

@@ -195,13 +195,11 @@ struct Memory::Impl {
                 break;
                 break;
             }
             }
             case Common::PageType::Memory: {
             case Common::PageType::Memory: {
-                DEBUG_ASSERT(pointer);
                 u8* mem_ptr = pointer + page_offset + (page_index << YUZU_PAGEBITS);
                 u8* mem_ptr = pointer + page_offset + (page_index << YUZU_PAGEBITS);
                 on_memory(copy_amount, mem_ptr);
                 on_memory(copy_amount, mem_ptr);
                 break;
                 break;
             }
             }
             case Common::PageType::DebugMemory: {
             case Common::PageType::DebugMemory: {
-                DEBUG_ASSERT(pointer);
                 u8* const mem_ptr{GetPointerFromDebugMemory(current_vaddr)};
                 u8* const mem_ptr{GetPointerFromDebugMemory(current_vaddr)};
                 on_memory(copy_amount, mem_ptr);
                 on_memory(copy_amount, mem_ptr);
                 break;
                 break;