From ca55d599e802e28349793f0098b1132df86149a9 Mon Sep 17 00:00:00 2001 From: JosJuice Date: Tue, 27 Jul 2021 11:11:30 +0200 Subject: [PATCH] Jit: Mark ValidBlockBitSet::Test as const --- Source/Core/Core/PowerPC/JitCommon/JitCache.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/Core/PowerPC/JitCommon/JitCache.h b/Source/Core/Core/PowerPC/JitCommon/JitCache.h index 35956e471e..ec8e9951df 100644 --- a/Source/Core/Core/PowerPC/JitCommon/JitCache.h +++ b/Source/Core/Core/PowerPC/JitCommon/JitCache.h @@ -121,7 +121,7 @@ public: void Set(u32 bit) { m_valid_block[bit / 32] |= 1u << (bit % 32); } void Clear(u32 bit) { m_valid_block[bit / 32] &= ~(1u << (bit % 32)); } void ClearAll() { memset(m_valid_block.get(), 0, sizeof(u32) * VALID_BLOCK_ALLOC_ELEMENTS); } - bool Test(u32 bit) { return (m_valid_block[bit / 32] & (1u << (bit % 32))) != 0; } + bool Test(u32 bit) const { return (m_valid_block[bit / 32] & (1u << (bit % 32))) != 0; } }; class JitBaseBlockCache