AA metadata refactoring (introduce AAMDNodes)
[oota-llvm.git] / lib / Transforms / InstCombine / InstructionCombining.cpp
index 0e8518108da980c6a6bdafff016274fcaef5501b..d3648e2d05053a8c891242051bc3feb7ff77ad9b 100644 (file)
@@ -2718,8 +2718,8 @@ bool InstCombiner::DoOneIteration(Function &F, unsigned Iteration) {
       if (UserParent != BB) {
         bool UserIsSuccessor = false;
         // See if the user is one of our successors.
-        for (BasicBlock *Succ : successors(BB))
-          if (Succ == UserParent) {
+        for (succ_iterator SI = succ_begin(BB), E = succ_end(BB); SI != E; ++SI)
+          if (*SI == UserParent) {
             UserIsSuccessor = true;
             break;
           }