diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-10-20 00:59:43 +0000 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-10-20 00:59:43 +0000 |
commit | c3f798847285d8f9f40e64501db311dc56067e0c (patch) | |
tree | 552c3b783c93a4266eb063fd5559ee260534719a /llvm/lib/Target/Sparc/SparcISelLowering.cpp | |
parent | f2bd5c3e225bde7576e421e09c03fb40c7268db5 (diff) | |
download | bcm5719-llvm-c3f798847285d8f9f40e64501db311dc56067e0c.tar.gz bcm5719-llvm-c3f798847285d8f9f40e64501db311dc56067e0c.zip |
Sparc: Remove implicit ilist iterator conversions, NFC
llvm-svn: 250781
Diffstat (limited to 'llvm/lib/Target/Sparc/SparcISelLowering.cpp')
-rw-r--r-- | llvm/lib/Target/Sparc/SparcISelLowering.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/Target/Sparc/SparcISelLowering.cpp b/llvm/lib/Target/Sparc/SparcISelLowering.cpp index ef2806474a0..73730990125 100644 --- a/llvm/lib/Target/Sparc/SparcISelLowering.cpp +++ b/llvm/lib/Target/Sparc/SparcISelLowering.cpp @@ -3053,8 +3053,7 @@ SparcTargetLowering::expandSelectCC(MachineInstr *MI, // to set, the condition code register to branch on, the true/false values to // select between, and a branch opcode to use. const BasicBlock *LLVM_BB = BB->getBasicBlock(); - MachineFunction::iterator It = BB; - ++It; + MachineFunction::iterator It = ++BB->getIterator(); // thisMBB: // ... @@ -3139,7 +3138,7 @@ SparcTargetLowering::expandAtomicRMW(MachineInstr *MI, .addReg(AddrReg).addImm(0); // Split the basic block MBB before MI and insert the loop block in the hole. - MachineFunction::iterator MFI = MBB; + MachineFunction::iterator MFI = MBB->getIterator(); const BasicBlock *LLVM_BB = MBB->getBasicBlock(); MachineFunction *MF = MBB->getParent(); MachineBasicBlock *LoopMBB = MF->CreateMachineBasicBlock(LLVM_BB); |