Fix a problem with the reverse bundle iterators.
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Mon, 11 Jun 2012 15:11:12 +0000 (15:11 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Mon, 11 Jun 2012 15:11:12 +0000 (15:11 +0000)
commit20aedcdfa35f4b6494d4990cf6dd4459d7172c49
tree5f1682adaf9f02825c6d8a20dd2ee3231813a364
parent773ef61299454dc15860bfe6af8f3a2dc57f0f06
Fix a problem with the reverse bundle iterators.

This showed up the first time rend() was called on a bundled instruction
in the Mips backend.

Also avoid dereferencing end() in bundle_iterator::operator++().

We still don't have a place to put unit tests for this stuff.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@158310 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/MachineBasicBlock.h