Add missing 'const'. I don't think this is strictly required, but some
[oota-llvm.git] / tools / llvm-objdump / llvm-objdump.cpp
index 8d906daecc0d9be57393c66337a1ed212c60a9c4..275eb9c6a454e44e90a9bc7ce9a674eb69ee6679 100644 (file)
@@ -946,7 +946,7 @@ static void DisassembleObject(const ObjectFile *Obj, bool InlineRelocs) {
             if (MIA->evaluateBranch(Inst, SectionAddr + Index, Size, Target)) {
               auto TargetSym = std::upper_bound(
                   AllSymbols.begin(), AllSymbols.end(), Target,
-                  [](uint64_t LHS, std::pair<uint64_t, StringRef> &RHS) {
+                  [](uint64_t LHS, const std::pair<uint64_t, StringRef> &RHS) {
                     return LHS < RHS.first;
                   });
               if (TargetSym != AllSymbols.begin())