Merge pull request #9598 from JosJuice/arm64reg-assert

JitArm64: Fix broken format strings in Arm64RegCache
This commit is contained in:
Markus Wick 2021-03-19 22:08:45 +01:00 committed by GitHub
commit 3b9ae81790
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -72,7 +72,8 @@ void Arm64RegCache::LockRegister(ARM64Reg host_reg)
{
auto reg = std::find(m_host_registers.begin(), m_host_registers.end(), host_reg);
ASSERT_MSG(DYNA_REC, reg != m_host_registers.end(),
"Don't try locking a register that isn't in the cache. Reg %d", host_reg);
"Don't try locking a register that isn't in the cache. Reg %d",
static_cast<int>(host_reg));
reg->Lock();
}
@ -80,7 +81,8 @@ void Arm64RegCache::UnlockRegister(ARM64Reg host_reg)
{
auto reg = std::find(m_host_registers.begin(), m_host_registers.end(), host_reg);
ASSERT_MSG(DYNA_REC, reg != m_host_registers.end(),
"Don't try unlocking a register that isn't in the cache. Reg %d", host_reg);
"Don't try unlocking a register that isn't in the cache. Reg %d",
static_cast<int>(host_reg));
reg->Unlock();
}