From 558cf007b5ed92324156b29861a0acbf95442278 Mon Sep 17 00:00:00 2001 From: Eric Christopher Date: Tue, 12 Oct 2010 21:23:43 +0000 Subject: [PATCH] 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 --- lib/Target/ARM/ARMFastISel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Target/ARM/ARMFastISel.cpp b/lib/Target/ARM/ARMFastISel.cpp index ee3a87e21d6..418a9852ebc 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()); -- 2.34.1