AArch64: Stop using MachineInstr::getNextNode()
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Thu, 8 Oct 2015 22:43:26 +0000 (22:43 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Thu, 8 Oct 2015 22:43:26 +0000 (22:43 +0000)
commit9c2fb736df3c6b378c8f7531aa5e101628925c18
tree2c5621cc81980d2cb11424eabfa9cfef6ab82e7f
parentec0b29efd9f21e18e680796173ce44d2c77dd530
AArch64: Stop using MachineInstr::getNextNode()

Stop using `getNextNode()` to get an insertion point (at least, in this
one place).  Instead, use iterator logic directly.

The `getNextNode()` interface isn't actually supposed to work for
creating iterators; it's supposed to return `nullptr` (not a real
iterator) if this is the last node.  It's currently broken and will
"happen" to work, but if we ever fix the function, we'll get some
strange failures in places like this.

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