diff --git a/lld/ELF/Relocations.cpp b/lld/ELF/Relocations.cpp index c57585e187ef3..894fe2eb93b26 100644 --- a/lld/ELF/Relocations.cpp +++ b/lld/ELF/Relocations.cpp @@ -1619,7 +1619,7 @@ void ThunkCreator::mergeThunks(ArrayRef outputSections) { // those inserted in previous passes. Extract the Thunks created this // pass and order them in ascending outSecOff. std::vector newThunks; - for (const std::pair ts : isd->thunkSections) + for (std::pair ts : isd->thunkSections) if (ts.second == pass) newThunks.push_back(ts.first); llvm::stable_sort(newThunks,