diff options
author | Eric Christopher <echristo@apple.com> | 2010-10-12 21:23:43 +0000 |
---|---|---|
committer | Eric Christopher <echristo@apple.com> | 2010-10-12 21:23:43 +0000 |
commit | 558cf007b5ed92324156b29861a0acbf95442278 (patch) | |
tree | e21b053a31d16ba3695e321ecb117fcb5096a65d /lib | |
parent | 499e886fe6c0ad02e0079734733dd7dde03d2940 (diff) | |
download | external_llvm-558cf007b5ed92324156b29861a0acbf95442278.zip external_llvm-558cf007b5ed92324156b29861a0acbf95442278.tar.gz external_llvm-558cf007b5ed92324156b29861a0acbf95442278.tar.bz2 |
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
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Target/ARM/ARMFastISel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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 @@ 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()); |