llvm.org GIT mirror llvm / d09a1e4
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 Daniel Jasper 5 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
945945 if (MIA->evaluateBranch(Inst, SectionAddr + Index, Size, Target)) {
946946 auto TargetSym = std::upper_bound(
947947 AllSymbols.begin(), AllSymbols.end(), Target,
948 [](uint64_t LHS, std::pair &RHS) {
948 [](uint64_t LHS, const std::pair &RHS) {
949949 return LHS < RHS.first;
950950 });
951951 if (TargetSym != AllSymbols.begin())