OSDN Git Service

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)
commit0c222835982bae5e4831e16090f6ce594ef541a6
tree2ff3981372b12b1b419d68ef46e201dc745c3e7d
parentf0b2535344e8c9e2912da78010918a44c5a18cab
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@175383 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/MachineBasicBlock.cpp