mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-22 05:40:01 -06:00
BlockCache: Use const_cast
This commit is contained in:
@ -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();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user