forked from OSchip/llvm-project
do the multiplication as signed, so that 2*-2 == -4 instead of 4294967292
when promoted to 64-bits llvm-svn: 36442
This commit is contained in:
parent
073be55d8e
commit
d20cd6658a
|
@ -1016,7 +1016,8 @@ void
|
|||
X86RegisterInfo::processFunctionBeforeFrameFinalized(MachineFunction &MF) const{
|
||||
if (hasFP(MF)) {
|
||||
// Create a frame entry for the EBP register that must be saved.
|
||||
int FrameIdx = MF.getFrameInfo()->CreateFixedObject(SlotSize,SlotSize * -2);
|
||||
int FrameIdx = MF.getFrameInfo()->CreateFixedObject(SlotSize,
|
||||
(int)SlotSize * -2);
|
||||
assert(FrameIdx == MF.getFrameInfo()->getObjectIndexBegin() &&
|
||||
"Slot for EBP register must be last in order to be found!");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue