arm64jit: Fix spilling for more than one temp reg.

Otherwise we hang trying to spill the same reg over and over.
This commit is contained in:
Unknown W. Brackets committed 2017-12-29 17:30:17 -08:00
1 parent ee236743f0
commit 98ed6fab3f
1 file changed
+2
+2
View File
@@ -275,6 +275,8 @@ ARM64Reg Arm64RegCache::FindBestToSpill(bool unusedOnly, bool *clobbered) {
ARM64Reg reg = allocOrder[i];
if (ar[reg].mipsReg != MIPS_REG_INVALID && mr[ar[reg].mipsReg].spillLock)
continue;
if (ar[reg].tempLocked)
continue;
// As it's in alloc-order, we know it's not static so we don't need to check for that.