Fixing register eviction.

This commit is contained in:
Ben Vanik 2014-01-26 11:17:53 -08:00
parent 5eeeee7093
commit ac59b61851
1 changed files with 2 additions and 0 deletions

View File

@ -242,6 +242,8 @@ void X64Emitter::FindFreeRegs(
if (!free_regs) {
// Need to evict something.
EvictStaleRegs();
free_regs = avail_regs & ~reg_state_.live_regs;
XEASSERT(free_regs);
}
// Find the first available.