[llvm] [NFC] Use references to avoid copying (PR #110462)
Phoebe Wang via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 17 01:32:37 PDT 2024
================
@@ -256,7 +256,7 @@ void IntrinsicEmitter::EmitIntrinsicToOverloadTable(
static constexpr uint8_t OTable[] = {
0
)";
- for (auto [I, Int] : enumerate(Ints)) {
+ for (const auto [I, Int] : enumerate(Ints)) {
----------------
phoebewang wrote:
Given it is just a copy, do we still need `const`?
https://github.com/llvm/llvm-project/pull/110462
More information about the llvm-commits
mailing list