[PATCH] D119798: [ADT, CSSPGO] Specify set comparer

Hongtao Yu via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 23 10:36:39 PST 2022


hoy added inline comments.


================
Comment at: llvm/include/llvm/Transforms/IPO/ProfiledCallGraph.h:54
 
-  using iterator = std::set<ProfiledCallGraphEdge>::iterator;
-  using const_iterator = std::set<ProfiledCallGraphEdge>::const_iterator;
+  using iterator =
+      std::set<ProfiledCallGraphEdge, ProfiledCallGraphEdgeComparer>::iterator;
----------------
nit: using iterator = edges::iterator ?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D119798/new/

https://reviews.llvm.org/D119798



More information about the llvm-commits mailing list