[llvm] r241892 - Add missing 'const'. I don't think this is strictly required, but some
Daniel Jasper
djasper at google.com
Fri Jul 10 00:09:20 PDT 2015
Author: djasper
Date: Fri Jul 10 02:09:20 2015
New Revision: 241892
URL: http://llvm.org/viewvc/llvm-project?rev=241892&view=rev
Log:
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.
Modified:
llvm/trunk/tools/llvm-objdump/llvm-objdump.cpp
Modified: llvm/trunk/tools/llvm-objdump/llvm-objdump.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-objdump/llvm-objdump.cpp?rev=241892&r1=241891&r2=241892&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-objdump/llvm-objdump.cpp (original)
+++ llvm/trunk/tools/llvm-objdump/llvm-objdump.cpp Fri Jul 10 02:09:20 2015
@@ -946,7 +946,7 @@ static void DisassembleObject(const Obje
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())
More information about the llvm-commits
mailing list