[all-commits] [llvm/llvm-project] d88a5c: [SmallString] Remove StringRef indirection for std...

Jonas Devlieghere via All-commits all-commits at lists.llvm.org
Wed Jan 29 13:50:48 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: d88a5c398776ed6e4b36b58b79c1b4b56f413f35
      https://github.com/llvm/llvm-project/commit/d88a5c398776ed6e4b36b58b79c1b4b56f413f35
  Author: Jonas Devlieghere <jonas at devlieghere.com>
  Date:   2020-01-29 (Wed, 29 Jan 2020)

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

  Log Message:
  -----------
  [SmallString] Remove StringRef indirection for std::string conversion.

There's no need to go through StringRef to convert a SmallString to a
std::string, the conversion operator can create a std::string directly.

Differential revision: https://reviews.llvm.org/D73640




More information about the All-commits mailing list