[llvm] [NFC] Use references to avoid copying (PR #110462)
    Pratyay Pande via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Fri Oct 18 01:16:52 PDT 2024
    
    
  
================
@@ -346,7 +346,7 @@ static constexpr {} IIT_Table[] = {{
                 FixedEncodingTypeName);
 
   unsigned MaxOffset = 0;
-  for (auto [Idx, FixedEncoding, Int] : enumerate(FixedEncodings, Ints)) {
+  for (const auto [Idx, FixedEncoding, Int] : enumerate(FixedEncodings, Ints)) {
----------------
pratyay-p wrote:
Got it. It seems that we wont need to change anything in this PR. Closing this.
https://github.com/llvm/llvm-project/pull/110462
    
    
More information about the llvm-commits
mailing list