mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
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
This commit is contained in:
@@ -946,7 +946,7 @@ static void DisassembleObject(const ObjectFile *Obj, bool InlineRelocs) {
|
|||||||
if (MIA->evaluateBranch(Inst, SectionAddr + Index, Size, Target)) {
|
if (MIA->evaluateBranch(Inst, SectionAddr + Index, Size, Target)) {
|
||||||
auto TargetSym = std::upper_bound(
|
auto TargetSym = std::upper_bound(
|
||||||
AllSymbols.begin(), AllSymbols.end(), Target,
|
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;
|
return LHS < RHS.first;
|
||||||
});
|
});
|
||||||
if (TargetSym != AllSymbols.begin())
|
if (TargetSym != AllSymbols.begin())
|
||||||
|
Reference in New Issue
Block a user