[SmallString] Remove StringRef indirection for std::string conversion.
authorJonas Devlieghere <jonas@devlieghere.com>
Wed, 29 Jan 2020 21:48:39 +0000 (13:48 -0800)
committerJonas Devlieghere <jonas@devlieghere.com>
Wed, 29 Jan 2020 21:49:56 +0000 (13:49 -0800)
commitd88a5c398776ed6e4b36b58b79c1b4b56f413f35
tree20eeb95aa713cc65a3685b3fa63d93cb6ac4c5ac
parentc6bc10636cf3c48c947a4759d2e9648639cdfa71
[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
llvm/include/llvm/ADT/SmallString.h