diff --git a/llvm/include/llvm/ADT/Twine.h b/llvm/include/llvm/ADT/Twine.h --- a/llvm/include/llvm/ADT/Twine.h +++ b/llvm/include/llvm/ADT/Twine.h @@ -292,8 +292,7 @@ /// length. This handles string_views on a pure API basis, and avoids /// storing one (or a pointer to one) inside a Twine, which avoids problems /// when mixing code compiled under various C++ standards. - /*implicit*/ Twine(const std::string_view &Str) - : LHSKind(PtrAndLengthKind) { + /*implicit*/ Twine(std::string_view Str) : LHSKind(PtrAndLengthKind) { LHS.ptrAndLength.ptr = Str.data(); LHS.ptrAndLength.length = Str.length(); assert(isValid() && "Invalid twine!");