mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-21 21:29:41 +00:00
Add an assert (which should never trigger) that triggers on a testcase I'm looking at.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135018 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e721f5c8d3
commit
5cf2ee1f80
@ -730,7 +730,9 @@ X86RegisterInfo::eliminateFrameIndex(MachineBasicBlock::iterator II,
|
||||
|
||||
if (MI.getOperand(i+3).isImm()) {
|
||||
// Offset is a 32-bit integer.
|
||||
int Offset = FIOffset + (int)(MI.getOperand(i + 3).getImm());
|
||||
int Imm = (int)(MI.getOperand(i + 3).getImm());
|
||||
int Offset = FIOffset + Imm;
|
||||
assert(isInt<32>((long long)FIOffset + Imm) && "Overflowing offset!");
|
||||
MI.getOperand(i + 3).ChangeToImmediate(Offset);
|
||||
} else {
|
||||
// Offset is symbolic. This is extremely rare.
|
||||
|
Loading…
x
Reference in New Issue
Block a user