[PATCH] D72211: [ELF] Drop const qualifier to fix -Wrange-loop-analysis. NFC

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Jan 4 12:25:08 PST 2020


This revision was automatically updated to reflect the committed changes.
Closed by commit rG085898d469ab: [ELF] Drop const qualifier to fix -Wrange-loop-analysis. NFC (authored by MaskRay).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D72211/new/

https://reviews.llvm.org/D72211

Files:
  lld/ELF/Relocations.cpp


Index: lld/ELF/Relocations.cpp
===================================================================
--- lld/ELF/Relocations.cpp
+++ lld/ELF/Relocations.cpp
@@ -1619,7 +1619,7 @@
         // those inserted in previous passes. Extract the Thunks created this
         // pass and order them in ascending outSecOff.
         std::vector<ThunkSection *> newThunks;
-        for (const std::pair<ThunkSection *, uint32_t> ts : isd->thunkSections)
+        for (std::pair<ThunkSection *, uint32_t> ts : isd->thunkSections)
           if (ts.second == pass)
             newThunks.push_back(ts.first);
         llvm::stable_sort(newThunks,


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D72211.236197.patch
Type: text/x-patch
Size: 632 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200104/8dead170/attachment.bin>


More information about the llvm-commits mailing list