[llvm] r340305 - llvm-readobj: Simplify. NFCI.
Peter Collingbourne via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 21 10:18:18 PDT 2018
Author: pcc
Date: Tue Aug 21 10:18:18 2018
New Revision: 340305
URL: http://llvm.org/viewvc/llvm-project?rev=340305&view=rev
Log:
llvm-readobj: Simplify. NFCI.
Modified:
llvm/trunk/tools/llvm-readobj/ELFDumper.cpp
Modified: llvm/trunk/tools/llvm-readobj/ELFDumper.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-readobj/ELFDumper.cpp?rev=340305&r1=340304&r2=340305&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-readobj/ELFDumper.cpp (original)
+++ llvm/trunk/tools/llvm-readobj/ELFDumper.cpp Tue Aug 21 10:18:18 2018
@@ -4379,7 +4379,7 @@ void LLVMStyle<ELFT>::printAddrsig(const
while (Cur != End) {
unsigned Size;
const char *Err;
- uint64_t SymIndex = decodeULEB128(Cur, &Size, Contents.end(), &Err);
+ uint64_t SymIndex = decodeULEB128(Cur, &Size, End, &Err);
if (Err)
reportError(Err);
W.printNumber("Sym", this->dumper()->getStaticSymbolName(SymIndex),
More information about the llvm-commits
mailing list