summaryrefslogtreecommitdiff
path: root/lib/CodeGen/PrologEpilogInserter.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-08-21 20:04:59 +0000
committerChris Lattner <sabre@nondot.org>2004-08-21 20:04:59 +0000
commit7008034c9f5e69af92496308e176752dfc8e4297 (patch)
tree76441aa43019995a39d82ea83f88c4dca0a15fdd /lib/CodeGen/PrologEpilogInserter.cpp
parent98df506e712d51bf74ae526e2b6304bef9025a7e (diff)
downloadllvm-7008034c9f5e69af92496308e176752dfc8e4297.tar.gz
llvm-7008034c9f5e69af92496308e176752dfc8e4297.tar.bz2
llvm-7008034c9f5e69af92496308e176752dfc8e4297.tar.xz
Register info alignment is in bits, frame object alignment is (currently) in
bytes. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15970 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/PrologEpilogInserter.cpp')
-rw-r--r--lib/CodeGen/PrologEpilogInserter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/PrologEpilogInserter.cpp b/lib/CodeGen/PrologEpilogInserter.cpp
index 213371949c..c71755612e 100644
--- a/lib/CodeGen/PrologEpilogInserter.cpp
+++ b/lib/CodeGen/PrologEpilogInserter.cpp
@@ -182,7 +182,7 @@ void PEI::calculateCallerSavedRegisters(MachineFunction &Fn) {
if (FixedSlot == FixedSpillSlots+NumFixedSpillSlots) {
// Nope, just spill it anywhere convenient.
FrameIdx = FFI->CreateStackObject(RegInfo->getSpillSize(Reg),
- RegInfo->getSpillAlignment(Reg));
+ RegInfo->getSpillAlignment(Reg)/8);
} else {
// Spill it to the stack where we must.
FrameIdx = FFI->CreateFixedObject(RegInfo->getSpillSize(Reg),