diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2016-02-22 21:30:15 +0000 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2016-02-22 21:30:15 +0000 |
commit | d84f60065366d99c3aca4c8f917a35ab9ce4e7f5 (patch) | |
tree | 5d1e10b9568670bb98979a943db23a092e702448 /llvm/lib/Target/ARM/Thumb2ITBlockPass.cpp | |
parent | fb1533b3263e710f6eaa36344c6e15f6a9d8a6a2 (diff) | |
download | bcm5719-llvm-d84f60065366d99c3aca4c8f917a35ab9ce4e7f5.tar.gz bcm5719-llvm-d84f60065366d99c3aca4c8f917a35ab9ce4e7f5.zip |
CodeGen: Bring back MachineBasicBlock::iterator::getInstrIterator()...
This is a little embarrassing.
When I reverted r261504 (getIterator() => getInstrIterator()) in
r261567, I did a `git grep` to see if there were new calls to
`getInstrIterator()` that I needed to migrate. There were 10-20 hits,
and I blindly did a `sed ...` before calling `ninja check`.
However, these were `MachineInstrBundleIterator::getInstrIterator()`,
which predated r261567. Perhaps coincidentally, these had an identical
name and return type.
This commit undoes my careless sed and restores
`MachineBasicBlock::iterator::getInstrIterator()`.
llvm-svn: 261577
Diffstat (limited to 'llvm/lib/Target/ARM/Thumb2ITBlockPass.cpp')
-rw-r--r-- | llvm/lib/Target/ARM/Thumb2ITBlockPass.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Target/ARM/Thumb2ITBlockPass.cpp b/llvm/lib/Target/ARM/Thumb2ITBlockPass.cpp index c28ebe9cb26..bf0498dfda6 100644 --- a/llvm/lib/Target/ARM/Thumb2ITBlockPass.cpp +++ b/llvm/lib/Target/ARM/Thumb2ITBlockPass.cpp @@ -256,7 +256,8 @@ bool Thumb2ITBlockPass::InsertITInstructions(MachineBasicBlock &MBB) { LastITMI->findRegisterUseOperand(ARM::ITSTATE)->setIsKill(); // Finalize the bundle. - finalizeBundle(MBB, InsertPos.getIterator(), ++LastITMI->getIterator()); + finalizeBundle(MBB, InsertPos.getInstrIterator(), + ++LastITMI->getIterator()); Modified = true; ++NumITs; |