[llvm] [LLVM][NFC] Reduce redundant copy parameter in lambda (PR #110299)
Amr Hesham via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 15 09:23:46 PDT 2024
AmrDeveloper wrote:
> Since the text is only being used in a debug message, it could be `const char*`. Then you're only passing a pointer as opposed to StringRef that's pointer + size.
>
> Also please update the PR title to reflect what you choose to do.
>
> This is reducing copies in a sense, but it's not removing it entirely.
Thank you, Done
https://github.com/llvm/llvm-project/pull/110299
More information about the llvm-commits
mailing list