diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-10-09 19:40:45 +0000 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-10-09 19:40:45 +0000 |
commit | 5ec1568c9c57c3bba3e1c37558c6aebb3a45c108 (patch) | |
tree | 953b450f242a7305064d6843fa39137e2d8553e4 /llvm/lib/CodeGen/MachineFunction.cpp | |
parent | 6ac07fd228ff7437376ae85f6b5bb87aff864672 (diff) | |
download | bcm5719-llvm-5ec1568c9c57c3bba3e1c37558c6aebb3a45c108.tar.gz bcm5719-llvm-5ec1568c9c57c3bba3e1c37558c6aebb3a45c108.zip |
CodeGen: Continue removing ilist iterator implicit conversions
llvm-svn: 249884
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunction.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineFunction.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/MachineFunction.cpp b/llvm/lib/CodeGen/MachineFunction.cpp index cf9213b84c4..5e614c6cb2e 100644 --- a/llvm/lib/CodeGen/MachineFunction.cpp +++ b/llvm/lib/CodeGen/MachineFunction.cpp @@ -157,7 +157,7 @@ void MachineFunction::RenumberBlocks(MachineBasicBlock *MBB) { if (MBB == nullptr) MBBI = begin(); else - MBBI = MBB; + MBBI = MBB->getIterator(); // Figure out the block number this should have. unsigned BlockNo = 0; @@ -177,7 +177,7 @@ void MachineFunction::RenumberBlocks(MachineBasicBlock *MBB) { if (MBBNumbering[BlockNo]) MBBNumbering[BlockNo]->setNumber(-1); - MBBNumbering[BlockNo] = MBBI; + MBBNumbering[BlockNo] = &*MBBI; MBBI->setNumber(BlockNo); } } |