AArch64: Make getNextNode() cleanup in r249764 more clear
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Fri, 9 Oct 2015 16:54:54 +0000 (16:54 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Fri, 9 Oct 2015 16:54:54 +0000 (16:54 +0000)
commit969c1a317d2533e676124ee656a5c1c911a22293
tree81e068a42ee5d51c4d6fc1ed0fc56baf204e0ae5
parent9cb8e12ce13a21a3eb86af76d93423b6b11d86be
AArch64: Make getNextNode() cleanup in r249764 more clear

After r249764, if you didn't see the full context, it looked like
`std::next(I)` would get the same result as
`++MachineBasicBlock::iterator(I)`.  However, `I` is a `MachineInstr*`
(not a `MachineBasicBlock::iterator`).

Use the `getIterator()` helper I added later (r249782) to make this code
more clear.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@249852 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AArch64/AArch64CleanupLocalDynamicTLSPass.cpp