mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-10 20:42:32 +00:00
Fix up assertion in r135018 so it doesn't trigger on 32-bit; when we're in 32-bit, it doesn't matter whether the operation overflows because the computed address is not wider than the immediate.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135120 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
00a66653cb
commit
7e94501071
@ -732,7 +732,8 @@ X86RegisterInfo::eliminateFrameIndex(MachineBasicBlock::iterator II,
|
||||
// Offset is a 32-bit integer.
|
||||
int Imm = (int)(MI.getOperand(i + 3).getImm());
|
||||
int Offset = FIOffset + Imm;
|
||||
assert(isInt<32>((long long)FIOffset + Imm) && "Overflowing offset!");
|
||||
assert((!Is64Bit || isInt<32>((long long)FIOffset + Imm)) &&
|
||||
"Requesting 64-bit offset in 32-bit immediate!");
|
||||
MI.getOperand(i + 3).ChangeToImmediate(Offset);
|
||||
} else {
|
||||
// Offset is symbolic. This is extremely rare.
|
||||
|
Loading…
x
Reference in New Issue
Block a user