1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-26 04:32:44 +01:00

[readobj] Fix dangling else warning

This commit is contained in:
Kadir Cetinkaya 2020-05-29 12:55:11 +02:00
parent 87771f8fd7
commit 6c544d572f

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>