[PATCH] D32118: Cleanup some GraphTraits iteration code

Alexander Kornienko via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 17 07:22:01 PDT 2017


alexfh accepted this revision.
alexfh added a comment.
This revision is now accepted and ready to land.

LG with one more comment.



================
Comment at: include/llvm/Analysis/LoopInfoImpl.h:89
         // Not in current loop? It must be an exit block.
-        ExitEdges.push_back(Edge(*BI, *I));
+        ExitEdges.push_back(Edge(BB, Succ));
 }
----------------
Change to `emplace_back`?


https://reviews.llvm.org/D32118





More information about the llvm-commits mailing list