[all-commits] [llvm/llvm-project] 156b1e: Explicitly convert StringRef to std::string for co...

Dmitri Gribenko via All-commits all-commits at lists.llvm.org
Wed Dec 15 03:51:05 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 156b1e6ba84887ba92688b3ad31e400c56f707b2
      https://github.com/llvm/llvm-project/commit/156b1e6ba84887ba92688b3ad31e400c56f707b2
  Author: Dmitri Gribenko <gribozavr at gmail.com>
  Date:   2021-12-15 (Wed, 15 Dec 2021)

  Changed paths:
    M llvm/lib/ProfileData/SampleProf.cpp

  Log Message:
  -----------
  Explicitly convert StringRef to std::string for compatibility with libstdc++ 5.4.0

For some reason, the user-defined implicit conversion from StringRef to
std::string is not invoked by std::map::emplace in libstdc++ 5.4.0, even
though it works fine on modern systems.




More information about the All-commits mailing list