llvm-readobj: Simplify. NFCI.

llvm-svn: 340305
This commit is contained in:
Peter Collingbourne 2018-08-21 17:18:18 +00:00
parent 6603f0bff9
commit 7d1790868f
1 changed files with 1 additions and 1 deletions

View File

@ -4379,7 +4379,7 @@ void LLVMStyle<ELFT>::printAddrsig(const ELFFile<ELFT> *Obj) {
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),