mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-08 21:10:35 +00:00
[Hexagon] Do not fall-through if there is no CFG edge
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@250850 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
cdc93cb36f
commit
014b76cd0f
@ -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
Block a user