[PATCH] D129533: [ADT] Pass string_view via copy
ppenguin via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 12 20:56:09 PDT 2022
prehistoric-penguin marked an inline comment as done.
prehistoric-penguin added inline comments.
================
Comment at: llvm/include/llvm/ADT/Twine.h:303
/// Construct from a StringRef.
- /*implicit*/ Twine(const StringRef &Str) : LHSKind(PtrAndLengthKind) {
+ /*implicit*/ Twine(StringRef Str) : LHSKind(PtrAndLengthKind) {
LHS.ptrAndLength.ptr = Str.data();
----------------
RKSimon wrote:
> This probably should be done seperately and part of a larger refactor away from const StringRef & args IF we can confirm that its beneficial - it will probably need an update in the coding guidelines as well.
Thanks! Could you please elaborate more on `larger refactor`? I am interested in this.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D129533/new/
https://reviews.llvm.org/D129533
More information about the llvm-commits
mailing list