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());