BlockCache: Use const_cast

This commit is contained in:
Lioncash 2016-12-13 18:57:09 -05:00
parent 36c99df9f5
commit 1aff8c4eb1

View File

@ -33,8 +33,8 @@ void JitBlockCache::WriteLinkBlock(const JitBlock::LinkData& source, const JitBl
void JitBlockCache::WriteDestroyBlock(const JitBlock& block) void JitBlockCache::WriteDestroyBlock(const JitBlock& block)
{ {
// Only clear the entry points as we might still be within this block. // Only clear the entry points as we might still be within this block.
Gen::XEmitter emit((u8*)block.checkedEntry); Gen::XEmitter emit(const_cast<u8*>(block.checkedEntry));
emit.INT3(); emit.INT3();
Gen::XEmitter emit2((u8*)block.normalEntry); Gen::XEmitter emit2(const_cast<u8*>(block.normalEntry));
emit2.INT3(); emit2.INT3();
} }