[all-commits] [llvm/llvm-project] 01df04: [ADT] Reduce the requirements for the simple loop ...

Benjamin Kramer via All-commits all-commits at lists.llvm.org
Mon Apr 13 10:34:23 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 01df04fb5984558d217c7b0cdd4bad67e2c5e5d3
      https://github.com/llvm/llvm-project/commit/01df04fb5984558d217c7b0cdd4bad67e2c5e5d3
  Author: Benjamin Kramer <benny.kra at googlemail.com>
  Date:   2020-04-13 (Mon, 13 Apr 2020)

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

  Log Message:
  -----------
  [ADT] Reduce the requirements for the simple loop in DenseMap::clear

We can use it when just the value doesn't require destruction. Empty
keys are safe to overwrite always. This gets the important case of
std::pair values.




More information about the All-commits mailing list