From 8759585aba78a2109db10511fdd0913af7d6e844 Mon Sep 17 00:00:00 2001 From: Evan Cheng Date: Sat, 17 Oct 2009 07:53:04 +0000 Subject: Revert 84315 for now. Re-thinking the patch. llvm-svn: 84321 --- llvm/lib/CodeGen/StackSlotColoring.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'llvm/lib/CodeGen/StackSlotColoring.cpp') diff --git a/llvm/lib/CodeGen/StackSlotColoring.cpp b/llvm/lib/CodeGen/StackSlotColoring.cpp index 242ff656359..fad0808c893 100644 --- a/llvm/lib/CodeGen/StackSlotColoring.cpp +++ b/llvm/lib/CodeGen/StackSlotColoring.cpp @@ -466,8 +466,8 @@ void StackSlotColoring::RewriteInstruction(MachineInstr *MI, int OldFI, // Update the memory references. This changes the MachineMemOperands // directly. They may be in use by multiple instructions, however all // instructions using OldFI are being rewritten to use NewFI. - const Value *OldSV = PseudoSourceValue::getStackObject(OldFI); - const Value *NewSV = PseudoSourceValue::getStackObject(NewFI); + const Value *OldSV = PseudoSourceValue::getFixedStack(OldFI); + const Value *NewSV = PseudoSourceValue::getFixedStack(NewFI); for (MachineInstr::mmo_iterator I = MI->memoperands_begin(), E = MI->memoperands_end(); I != E; ++I) if ((*I)->getValue() == OldSV) -- cgit v1.2.3