Register info alignment is in bits, frame object alignment is (currently) in

bytes.

llvm-svn: 15970
This commit is contained in:
Chris Lattner 2004-08-21 20:04:59 +00:00
parent beadefde19
commit 36ba4bb042
1 changed files with 1 additions and 1 deletions

View File

@ -182,7 +182,7 @@ void PEI::calculateCallerSavedRegisters(MachineFunction &Fn) {
if (FixedSlot == FixedSpillSlots+NumFixedSpillSlots) { if (FixedSlot == FixedSpillSlots+NumFixedSpillSlots) {
// Nope, just spill it anywhere convenient. // Nope, just spill it anywhere convenient.
FrameIdx = FFI->CreateStackObject(RegInfo->getSpillSize(Reg), FrameIdx = FFI->CreateStackObject(RegInfo->getSpillSize(Reg),
RegInfo->getSpillAlignment(Reg)); RegInfo->getSpillAlignment(Reg)/8);
} else { } else {
// Spill it to the stack where we must. // Spill it to the stack where we must.
FrameIdx = FFI->CreateFixedObject(RegInfo->getSpillSize(Reg), FrameIdx = FFI->CreateFixedObject(RegInfo->getSpillSize(Reg),