[all-commits] [llvm/llvm-project] 79787b: [ADT, CSSPGO] Specify set comparer

Harald van Dijk via All-commits all-commits at lists.llvm.org
Thu Feb 24 16:59:06 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 79787b903d159541ab62d8aa61d4059f86ea307d
      https://github.com/llvm/llvm-project/commit/79787b903d159541ab62d8aa61d4059f86ea307d
  Author: Harald van Dijk <harald at gigawatt.nl>
  Date:   2022-02-25 (Fri, 25 Feb 2022)

  Changed paths:
    M llvm/include/llvm/ADT/EquivalenceClasses.h
    M llvm/include/llvm/Transforms/IPO/ProfiledCallGraph.h

  Log Message:
  -----------
  [ADT, CSSPGO] Specify set comparer

In _GLIBCXX_DEBUG builds, potentially implicitly enabled by
LLVM_ENABLE_EXPENSIVE_CHECKS, std::set<A, B>::iterator and
std::set<A, C>::iterator are distinct types that are not
interconvertible. This change aligns the iterator types with the set
types.

Reviewed By: hoy

Differential Revision: https://reviews.llvm.org/D119798




More information about the All-commits mailing list