Fix a conversion from a forward iterator to a reverse iterator in
authorCameron Zwarich <zwarich@apple.com>
Sun, 17 Feb 2013 01:45:04 +0000 (01:45 +0000)
committerCameron Zwarich <zwarich@apple.com>
Sun, 17 Feb 2013 01:45:04 +0000 (01:45 +0000)
commitddeabf78a0b04579dc03f3d3ff862fc05943db6c
treeb563c7d432c1a794e23bc872bd6853f12a2639c0
parentbfebb419844b1d9c63ad14d0cff51e19935a45a4
Fix a conversion from a forward iterator to a reverse iterator in
MachineBasicBlock::SplitCriticalEdge. Since this is an iterator rather than
an instr_iterator, the isBundled() check only passes if getFirstTerminator()
returned end() and the garbage memory happens to lean that way.

Multiple successors can be present without any terminator instructions in the
case of exception handling with a fallthrough.

llvm-svn: 175383
llvm/lib/CodeGen/MachineBasicBlock.cpp