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:
Chris Lattner 2007-04-25 17:23:53 +00:00
parent 073be55d8e
commit d20cd6658a
1 changed files with 2 additions and 1 deletions

View File

@ -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!");
}