commit | 558cf007b5ed92324156b29861a0acbf95442278 | [log] [tgz] |
---|---|---|
author | Eric Christopher <echristo@apple.com> | Tue Oct 12 21:23:43 2010 +0000 |
committer | Eric Christopher <echristo@apple.com> | Tue Oct 12 21:23:43 2010 +0000 |
tree | e21b053a31d16ba3695e321ecb117fcb5096a65d | |
parent | 499e886fe6c0ad02e0079734733dd7dde03d2940 [diff] [blame] |
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
diff --git a/lib/Target/ARM/ARMFastISel.cpp b/lib/Target/ARM/ARMFastISel.cpp index ee3a87e..418a985 100644 --- a/lib/Target/ARM/ARMFastISel.cpp +++ b/lib/Target/ARM/ARMFastISel.cpp
@@ -764,7 +764,7 @@ break; } - if (SrcReg == ARM::SP) + if (DstReg == ARM::SP) TII.storeRegToStackSlot(*FuncInfo.MBB, *FuncInfo.InsertPt, SrcReg, true /*isKill*/, Offset, TLI.getRegClassFor(VT), TM.getRegisterInfo());