]> granicus.if.org Git - llvm/commitdiff
[ARM] Fix build after r275540
authorJames Molloy <james.molloy@arm.com>
Fri, 15 Jul 2016 08:12:44 +0000 (08:12 +0000)
committerJames Molloy <james.molloy@arm.com>
Fri, 15 Jul 2016 08:12:44 +0000 (08:12 +0000)
A rebase seemed so innocent before committing. Turns out someone changed a pointer to a reference in the mean time :(

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@275541 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/ARM/ARMISelLowering.cpp

index 1d07e773f9db01a1338689f4dc0718529f3888e0..8ee275f554fe0f43c1e02f6f0575ab2c5c3b93d1 100644 (file)
@@ -8255,12 +8255,12 @@ ARMTargetLowering::EmitInstrWithCustomInserter(MachineInstr &MI,
   // Thumb1 post-indexed loads are really just single-register LDMs.
   case ARM::tLDR_postidx: {
     BuildMI(*BB, MI, dl, TII->get(ARM::tLDMIA_UPD))
-      .addOperand(MI->getOperand(1)) // Rn_wb
-      .addOperand(MI->getOperand(2)) // Rn
-      .addOperand(MI->getOperand(3)) // PredImm
-      .addOperand(MI->getOperand(4)) // PredReg
-      .addOperand(MI->getOperand(0)); // Rt
-    MI->eraseFromParent();
+      .addOperand(MI.getOperand(1)) // Rn_wb
+      .addOperand(MI.getOperand(2)) // Rn
+      .addOperand(MI.getOperand(3)) // PredImm
+      .addOperand(MI.getOperand(4)) // PredReg
+      .addOperand(MI.getOperand(0)); // Rt
+    MI.eraseFromParent();
     return BB;
   }