mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-14 00:32:55 +00:00
Fix out of bounds access to the double regs array. Given the
code this looks correct, but could use review. The previous was definitely not correct. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@199940 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
6f1f795717
commit
22221ee0e3
@ -734,7 +734,7 @@ bool SparcAsmParser::matchRegisterName(const AsmToken &Tok,
|
||||
&& !name.substr(1, 2).getAsInteger(10, intVal)
|
||||
&& intVal >= 32 && intVal <= 62 && (intVal % 2 == 0)) {
|
||||
// FIXME: Check V9
|
||||
RegNo = DoubleRegs[16 + intVal/2];
|
||||
RegNo = DoubleRegs[intVal/2];
|
||||
RegKind = SparcOperand::rk_DoubleReg;
|
||||
return true;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user