From 6c544d572f10f1e84b53bf20ce57e0e4ff9e4536 Mon Sep 17 00:00:00 2001 From: Kadir Cetinkaya Date: Fri, 29 May 2020 12:55:11 +0200 Subject: [PATCH] [readobj] Fix dangling else warning --- tools/llvm-readobj/ELFDumper.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/llvm-readobj/ELFDumper.cpp b/tools/llvm-readobj/ELFDumper.cpp index eebe65f8400..dc080c8dd49 100644 --- a/tools/llvm-readobj/ELFDumper.cpp +++ b/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