[TRE] Use successors(BB) (NFC)
authorKazu Hirata <kazu@google.com>
Mon, 16 Nov 2020 03:12:49 +0000 (19:12 -0800)
committerKazu Hirata <kazu@google.com>
Mon, 16 Nov 2020 03:12:49 +0000 (19:12 -0800)
llvm/lib/Transforms/Scalar/TailRecursionElimination.cpp

index 1ad332a..c5dc443 100644 (file)
@@ -282,7 +282,7 @@ static bool markTails(Function &F, bool &AllCallsAreTailCalls,
       }
     }
 
-    for (auto *SuccBB : make_range(succ_begin(BB), succ_end(BB))) {
+    for (auto *SuccBB : successors(BB)) {
       auto &State = Visited[SuccBB];
       if (State < Escaped) {
         State = Escaped;