From c66f27fd29535cd3f97d4ab89014c54c697b8ed7 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 15 Aug 2004 22:02:22 +0000 Subject: Stop using CreateStackObject(RegClass*) llvm-svn: 15775 --- llvm/lib/CodeGen/RegAllocSimple.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'llvm/lib/CodeGen/RegAllocSimple.cpp') diff --git a/llvm/lib/CodeGen/RegAllocSimple.cpp b/llvm/lib/CodeGen/RegAllocSimple.cpp index 320b2679337..6f6c2c6352e 100644 --- a/llvm/lib/CodeGen/RegAllocSimple.cpp +++ b/llvm/lib/CodeGen/RegAllocSimple.cpp @@ -99,7 +99,8 @@ int RegAllocSimple::getStackSpaceFor(unsigned VirtReg, return I->second; // Already has space allocated? // Allocate a new stack object for this spill location... - int FrameIdx = MF->getFrameInfo()->CreateStackObject(RC); + int FrameIdx = MF->getFrameInfo()->CreateStackObject(RC->getSize(), + RC->getAlignment()); // Assign the slot... StackSlotForVirtReg.insert(I, std::make_pair(VirtReg, FrameIdx)); -- cgit v1.2.3