mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-07 01:38:26 +00:00
Fix thinko in arm fast isel alloca rewrite.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116339 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
499e886fe6
commit
558cf007b5
@ -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…
x
Reference in New Issue
Block a user