From: Daniel Jasper Date: Fri, 10 Jul 2015 07:09:20 +0000 (+0000) Subject: Add missing 'const'. I don't think this is strictly required, but some X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=d09a1e42ca4f97608f389faec06511162507af27;p=oota-llvm.git Add missing 'const'. I don't think this is strictly required, but some compiler configuration is giving me an error and it seems to be recommended anyway. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@241892 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/tools/llvm-objdump/llvm-objdump.cpp b/tools/llvm-objdump/llvm-objdump.cpp index 8d906daecc0..275eb9c6a45 100644 --- a/tools/llvm-objdump/llvm-objdump.cpp +++ b/tools/llvm-objdump/llvm-objdump.cpp @@ -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 &RHS) { + [](uint64_t LHS, const std::pair &RHS) { return LHS < RHS.first; }); if (TargetSym != AllSymbols.begin())