[llvm] [NFC] Use references to avoid copying (PR #110462)

Pratyay Pande via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 30 01:23:55 PDT 2024


================
@@ -255,7 +255,7 @@ void IntrinsicEmitter::EmitIntrinsicToOverloadTable(
 static constexpr uint8_t OTable[] = {
   0
   )";
-  for (auto [I, Int] : enumerate(Ints)) {
+  for (const auto& [I, Int] : enumerate(Ints)) {
----------------
pratyay-p wrote:

I see, I have removed the reference in commit https://github.com/llvm/llvm-project/pull/110462/commits/a6e6e75ceba9ae37138a9364ecd4b38a22f30644.

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


More information about the llvm-commits mailing list