[llvm-dev] Passing Twine by value

Shoaib Meenai via llvm-dev llvm-dev at lists.llvm.org
Thu May 30 00:13:38 PDT 2019

Twine.h says twines should only be accepted as const references in arguments, but there are a bunch of functions that take Twine by value (e.g. you'll find lots of them in CGObjCMac.cpp in clang). Is this just a potential performance issue, or are there potential correctness issues from passing a twine by value as well?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20190530/d70d5162/attachment.html>

More information about the llvm-dev mailing list