mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-01 00:33:09 +00:00
Fix off-by-one error.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148077 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
79522dc569
commit
b4ee5168ab
@ -458,7 +458,7 @@ encodeCompactUnwindRegistersWithFrame(unsigned SavedRegs[CU_NUM_SAVED_REGS],
|
||||
// Encode the registers in the order they were saved, 3-bits per register. The
|
||||
// registers are numbered from 1 to CU_NUM_SAVED_REGS.
|
||||
uint32_t RegEnc = 0;
|
||||
for (int I = CU_NUM_SAVED_REGS, Idx = 0; I != -1; --I) {
|
||||
for (int I = CU_NUM_SAVED_REGS - 1, Idx = 0; I != -1; --I) {
|
||||
unsigned Reg = SavedRegs[I];
|
||||
if (Reg == 0) continue;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user