[readobj] Fix dangling else warning

This commit is contained in:
Kadir Cetinkaya 2020-05-29 12:55:11 +02:00
parent 4265f1d23c
commit 838a955ab9
No known key found for this signature in database
GPG Key ID: E39E36B8D2057ED6
1 changed files with 2 additions and 1 deletions

View File

@ -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>