Fix thinko in arm fast isel alloca rewrite.

llvm-svn: 116339
This commit is contained in:
Eric Christopher 2010-10-12 21:23:43 +00:00
parent 576640f0e3
commit 22e051eef0
1 changed files with 1 additions and 1 deletions

View File

@ -764,7 +764,7 @@ bool ARMFastISel::ARMEmitStore(EVT VT, unsigned SrcReg,
break;
}
if (SrcReg == ARM::SP)
if (DstReg == ARM::SP)
TII.storeRegToStackSlot(*FuncInfo.MBB, *FuncInfo.InsertPt,
SrcReg, true /*isKill*/, Offset,
TLI.getRegClassFor(VT), TM.getRegisterInfo());