summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/ARM/ARMBaseInstrInfo.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2011-04-29 05:24:29 +0000
committerChris Lattner <sabre@nondot.org>2011-04-29 05:24:29 +0000
commit1d0c25756eac13b47960124445ec7b014f332eff (patch)
tree801dee7314dc33c3b91751e5cb5f0d1719dba2d1 /llvm/lib/Target/ARM/ARMBaseInstrInfo.cpp
parent6d6cb40269d1253a86f3c025f72a957f8b8cbfbb (diff)
downloadbcm5719-llvm-1d0c25756eac13b47960124445ec7b014f332eff.tar.gz
bcm5719-llvm-1d0c25756eac13b47960124445ec7b014f332eff.zip
use the MachineInstrBuilder operator-> to simplify some code.
There are probably more instances of this floating around. llvm-svn: 130474
Diffstat (limited to 'llvm/lib/Target/ARM/ARMBaseInstrInfo.cpp')
-rw-r--r--llvm/lib/Target/ARM/ARMBaseInstrInfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/ARM/ARMBaseInstrInfo.cpp b/llvm/lib/Target/ARM/ARMBaseInstrInfo.cpp
index 54f51ccf91f..44a39761152 100644
--- a/llvm/lib/Target/ARM/ARMBaseInstrInfo.cpp
+++ b/llvm/lib/Target/ARM/ARMBaseInstrInfo.cpp
@@ -1021,7 +1021,7 @@ reMaterialize(MachineBasicBlock &MBB,
MachineInstrBuilder MIB = BuildMI(MBB, I, Orig->getDebugLoc(), get(Opcode),
DestReg)
.addConstantPoolIndex(CPI).addImm(PCLabelId);
- (*MIB).setMemRefs(Orig->memoperands_begin(), Orig->memoperands_end());
+ MIB->setMemRefs(Orig->memoperands_begin(), Orig->memoperands_end());
break;
}
}
OpenPOWER on IntegriCloud