[llvm] [llvm] Make target triple in TLII const reference (PR #127718)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 19 02:55:04 PST 2025


https://github.com/nikic commented:

> This avoids making a copy whenever the function is being called with an argument coming from const& values returned from TM

The change itself makes sense, but the PR description leaves me confused. Passing a Foo& to const Foo& should produce a compiler error, not an implicit copy, right?

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


More information about the llvm-commits mailing list