Fix else if -> if in store machinery.
authorEric Christopher <echristo@apple.com>
Fri, 15 Oct 2010 22:32:37 +0000 (22:32 +0000)
committerEric Christopher <echristo@apple.com>
Fri, 15 Oct 2010 22:32:37 +0000 (22:32 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116628 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/ARM/ARMFastISel.cpp

index 4650e03242d5aa81dfd72f54a6e73f4e063a999d..901cb579fb144abada520225ea1af52445727d88 100644 (file)
@@ -838,7 +838,7 @@ bool ARMFastISel::ARMEmitStore(EVT VT, unsigned SrcReg,
                             TLI.getRegClassFor(VT), TM.getRegisterInfo());
   // The thumb addressing mode has operands swapped from the arm addressing
   // mode, the floating point one only has two operands.
-  if (isFloat || isThumb)
+  else if (isFloat || isThumb)
     AddOptionalDefs(BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DL,
                             TII.get(StrOpc))
                     .addReg(SrcReg).addReg(Base.Reg).addImm(Offset));