Fix thinko in arm fast isel alloca rewrite.
llvm-svn: 116339
This commit is contained in:
parent
576640f0e3
commit
22e051eef0
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue