summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2010-10-12 21:23:43 +0000
committerEric Christopher <echristo@apple.com>2010-10-12 21:23:43 +0000
commit22e051eef047f3abb062b7204bfa296b5037e2c9 (patch)
treeab7406a4faae99f11d23aca29010c5eb2cfe053b
parent576640f0e32f9615fd3367936fc630cb4b25a2ca (diff)
downloadbcm5719-llvm-22e051eef047f3abb062b7204bfa296b5037e2c9.tar.gz
bcm5719-llvm-22e051eef047f3abb062b7204bfa296b5037e2c9.zip
Fix thinko in arm fast isel alloca rewrite.
llvm-svn: 116339
-rw-r--r--llvm/lib/Target/ARM/ARMFastISel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/ARM/ARMFastISel.cpp b/llvm/lib/Target/ARM/ARMFastISel.cpp
index ee3a87e21d6..418a9852ebc 100644
--- a/llvm/lib/Target/ARM/ARMFastISel.cpp
+++ b/llvm/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());
OpenPOWER on IntegriCloud