[all-commits] [llvm/llvm-project] bbf01f: [ADT] Take graph as const & in some post-order ite...

Florian Hahn via All-commits all-commits at lists.llvm.org
Sat Apr 17 09:13:01 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: bbf01f96b5ccc1dcb4d1d47cb55292c27c698dbb
      https://github.com/llvm/llvm-project/commit/bbf01f96b5ccc1dcb4d1d47cb55292c27c698dbb
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2021-04-17 (Sat, 17 Apr 2021)

  Changed paths:
    M llvm/include/llvm/ADT/PostOrderIterator.h

  Log Message:
  -----------
  [ADT] Take graph as const & in some post-order iterators (NFC).

This patch updates a couple of functions that unnecessarily took the
input graph by value, when it was not needed. They can take the graph by
const-reference instead, which does not require GraphT to provide a copy
constructor.

Split off from D100169.




More information about the All-commits mailing list