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:
parent
87771f8fd7
commit
6c544d572f
@ -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
Block a user