forked from OSchip/llvm-project
[readobj] Fix dangling else warning
This commit is contained in:
parent
4265f1d23c
commit
838a955ab9
|
@ -4693,11 +4693,12 @@ void GNUStyle<ELFT>::printHashHistograms(const ELFFile<ELFT> *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<ELFT>(Obj, GnuHashTable))
|
||||
this->reportUniqueWarning(std::move(E));
|
||||
else
|
||||
printGnuHashHistogram(*GnuHashTable);
|
||||
}
|
||||
}
|
||||
|
||||
template <class ELFT>
|
||||
|
|
Loading…
Reference in New Issue