[Hexagon] NFC Reordering headers.
[oota-llvm.git] / lib / Target / Hexagon / BitTracker.cpp
index 23336b6546e2e46fd3fd7b307a8326ccfade0577..ea96eb0ee10ad7e178218b23a3be2c55b49731bd 100644 (file)
@@ -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() && B.isSuccessor(Next)) {
+      if (Next != MF.end() && B.isSuccessor(&*Next)) {
         int ThisN = B.getNumber();
         int NextN = Next->getNumber();
         FlowQ.push(CFGEdge(ThisN, NextN));