[llvm-commits] CVS: llvm/lib/CodeGen/PrologEpilogInserter.cpp

Nate Begeman natebegeman at mac.com
Thu Aug 26 21:28:20 PDT 2004



Changes in directory llvm/lib/CodeGen:

PrologEpilogInserter.cpp updated: 1.34 -> 1.35
---
Log message:

Register sizes are in bits, not bytes

---
Diffs of the changes:  (+2 -2)

Index: llvm/lib/CodeGen/PrologEpilogInserter.cpp
diff -u llvm/lib/CodeGen/PrologEpilogInserter.cpp:1.34 llvm/lib/CodeGen/PrologEpilogInserter.cpp:1.35
--- llvm/lib/CodeGen/PrologEpilogInserter.cpp:1.34	Sat Aug 21 15:04:59 2004
+++ llvm/lib/CodeGen/PrologEpilogInserter.cpp	Thu Aug 26 23:28:10 2004
@@ -181,11 +181,11 @@
     int FrameIdx;
     if (FixedSlot == FixedSpillSlots+NumFixedSpillSlots) {
       // Nope, just spill it anywhere convenient.
-      FrameIdx = FFI->CreateStackObject(RegInfo->getSpillSize(Reg),
+      FrameIdx = FFI->CreateStackObject(RegInfo->getSpillSize(Reg)/8,
                                         RegInfo->getSpillAlignment(Reg)/8);
     } else {
       // Spill it to the stack where we must.
-      FrameIdx = FFI->CreateFixedObject(RegInfo->getSpillSize(Reg),
+      FrameIdx = FFI->CreateFixedObject(RegInfo->getSpillSize(Reg)/8,
                                         FixedSlot->second);
     }
     StackSlots.push_back(FrameIdx);






More information about the llvm-commits mailing list