[llvm] [Support] Give llvm_strlcpy restrict semantics (PR #78168)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 19 08:14:12 PST 2024


nikic wrote:

> > This looks like an unnecessary change for the sake of change.
> 
> It is just for consistency.

Consistency with what? This is an utterly unimportant helper used only by the regex implementation, which is imported from a 3rd party to boot. The code is not performance critical, so why would we care to sprinkle about dangerous optimization attributes in its implementation?

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


More information about the llvm-commits mailing list