forked from OSchip/llvm-project
[Hexagon] Do not fall-through if there is no CFG edge
llvm-svn: 250850
This commit is contained in:
parent
bfe8e92fd1
commit
e4cff4058c
|
@ -1106,7 +1106,7 @@ void BT::run() {
|
|||
if (It == End) {
|
||||
MachineFunction::const_iterator BIt = B.getIterator();
|
||||
MachineFunction::const_iterator Next = std::next(BIt);
|
||||
if (Next != MF.end()) {
|
||||
if (Next != MF.end() && B.isSuccessor(Next)) {
|
||||
int ThisN = B.getNumber();
|
||||
int NextN = Next->getNumber();
|
||||
FlowQ.push(CFGEdge(ThisN, NextN));
|
||||
|
|
Loading…
Reference in New Issue