[llvm] [LLVM][NFC] Remove redundant copy parameter in lambda (PR #110299)

David Spickett via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 15 05:11:33 PDT 2024


https://github.com/DavidSpickett commented:

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.

https://github.com/llvm/llvm-project/pull/110299


More information about the llvm-commits mailing list