diff --git a/llvm/tools/llvm-readobj/ELFDumper.cpp b/llvm/tools/llvm-readobj/ELFDumper.cpp index eebe65f8400f38..dc080c8dd49cb8 100644 --- a/llvm/tools/llvm-readobj/ELFDumper.cpp +++ b/llvm/tools/llvm-readobj/ELFDumper.cpp @@ -4693,11 +4693,12 @@ void GNUStyle::printHashHistograms(const ELFFile *Obj) { printHashHistogram(*HashTable); // Print histogram for the .gnu.hash section. - if (const Elf_GnuHash *GnuHashTable = this->dumper()->getGnuHashTable()) + if (const Elf_GnuHash *GnuHashTable = this->dumper()->getGnuHashTable()) { if (Error E = checkGNUHashTable(Obj, GnuHashTable)) this->reportUniqueWarning(std::move(E)); else printGnuHashHistogram(*GnuHashTable); + } } template