[llvm] r358370 - [Sparc] Fix typo. NFC.

Jim Lin via llvm-commits llvm-commits at lists.llvm.org
Sun Apr 14 22:16:46 PDT 2019


Author: jimlin
Date: Sun Apr 14 22:16:46 2019
New Revision: 358370

URL: http://llvm.org/viewvc/llvm-project?rev=358370&view=rev
Log:
[Sparc] Fix typo. NFC.

Modified:
    llvm/trunk/lib/Target/Sparc/SparcRegisterInfo.cpp

Modified: llvm/trunk/lib/Target/Sparc/SparcRegisterInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Sparc/SparcRegisterInfo.cpp?rev=358370&r1=358369&r2=358370&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Sparc/SparcRegisterInfo.cpp (original)
+++ llvm/trunk/lib/Target/Sparc/SparcRegisterInfo.cpp Sun Apr 14 22:16:46 2019
@@ -197,10 +197,10 @@ SparcRegisterInfo::eliminateFrameIndex(M
       unsigned DestReg     = MI.getOperand(0).getReg();
       unsigned DestEvenReg = getSubReg(DestReg, SP::sub_even64);
       unsigned DestOddReg  = getSubReg(DestReg, SP::sub_odd64);
-      MachineInstr *StMI =
+      MachineInstr *LdMI =
         BuildMI(*MI.getParent(), II, dl, TII.get(SP::LDDFri), DestEvenReg)
         .addReg(FrameReg).addImm(0);
-      replaceFI(MF, *StMI, *StMI, dl, 1, Offset, FrameReg);
+      replaceFI(MF, *LdMI, *LdMI, dl, 1, Offset, FrameReg);
 
       MI.setDesc(TII.get(SP::LDDFri));
       MI.getOperand(0).setReg(DestOddReg);




More information about the llvm-commits mailing list