summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/Mips/MipsLongBranch.cpp
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-10-20 00:15:20 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-10-20 00:15:20 +0000
commit7869148c4741f30893159e028ad991bd2e0a5d63 (patch)
tree03f9363bcf587246bf23e346ab2405b3890d952a /llvm/lib/Target/Mips/MipsLongBranch.cpp
parente75e5d8afa67ec827216cdcf61d09fb91291d059 (diff)
downloadbcm5719-llvm-7869148c4741f30893159e028ad991bd2e0a5d63.tar.gz
bcm5719-llvm-7869148c4741f30893159e028ad991bd2e0a5d63.zip
Mips: Remove implicit ilist iterator conversions, NFC
llvm-svn: 250769
Diffstat (limited to 'llvm/lib/Target/Mips/MipsLongBranch.cpp')
-rw-r--r--llvm/lib/Target/Mips/MipsLongBranch.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/Mips/MipsLongBranch.cpp b/llvm/lib/Target/Mips/MipsLongBranch.cpp
index 90f8cc0cacf..d09843ed0e5 100644
--- a/llvm/lib/Target/Mips/MipsLongBranch.cpp
+++ b/llvm/lib/Target/Mips/MipsLongBranch.cpp
@@ -161,7 +161,7 @@ void MipsLongBranch::initMBBInfo() {
// Split the MBBs if they have two branches. Each basic block should have at
// most one branch after this loop is executed.
for (MachineFunction::iterator I = MF->begin(), E = MF->end(); I != E;)
- splitMBB(I++);
+ splitMBB(&*I++);
MF->RenumberBlocks();
MBBInfos.clear();
@@ -434,7 +434,7 @@ void MipsLongBranch::expandToLongBranch(MBBInfo &I) {
I.Br->addOperand(MachineOperand::CreateMBB(LongBrMBB));
} else
// Change branch destination and reverse condition.
- replaceBranch(*MBB, I.Br, DL, FallThroughMBB);
+ replaceBranch(*MBB, I.Br, DL, &*FallThroughMBB);
}
static void emitGPDisp(MachineFunction &F, const MipsInstrInfo *TII) {
OpenPOWER on IntegriCloud