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

Pratyay Pande via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 17 01:24:36 PDT 2024


================
@@ -229,8 +229,9 @@ struct IntrinsicTargetInfo {
 };
 static constexpr IntrinsicTargetInfo TargetInfos[] = {
 )";
-  for (const auto [Name, Offset, Count] : Ints.Targets)
-    OS << formatv("  {{\"{}\", {}, {}},\n", Name, Offset, Count);
+  for (const auto &Target : Ints.Targets)
----------------
pratyay-p wrote:

Done, removed reference and `const`.

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


More information about the llvm-commits mailing list