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.

llvm-svn: 241892
This commit is contained in:
Daniel Jasper 2015-07-10 07:09:20 +00:00
parent 82771b1ad6
commit 0f70ee9017
1 changed files with 1 additions and 1 deletions

View 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())