[all-commits] [llvm/llvm-project] 61a286: [tools] Don't call StringRef::str() when calling S...

Kazu Hirata via All-commits all-commits at lists.llvm.org
Mon Oct 21 06:50:56 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 61a286ac0817671ad09a505303b7a3a446798316
      https://github.com/llvm/llvm-project/commit/61a286ac0817671ad09a505303b7a3a446798316
  Author: Kazu Hirata <kazu at google.com>
  Date:   2024-10-21 (Mon, 21 Oct 2024)

  Changed paths:
    M llvm/tools/llvm-profdata/llvm-profdata.cpp
    M llvm/tools/llvm-readtapi/llvm-readtapi.cpp

  Log Message:
  -----------
  [tools] Don't call StringRef::str() when calling StringMap::find (NFC) (#113119)

StringMap::find takes StringRef.  We don't need to create an instance
of std::string from StringRef only to convert it right back to
StringRef.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list