summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lld/lib/ReaderWriter/ELF/Hexagon/HexagonELFFile.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/lld/lib/ReaderWriter/ELF/Hexagon/HexagonELFFile.h b/lld/lib/ReaderWriter/ELF/Hexagon/HexagonELFFile.h
index f0dfd532b15..0e049d97de3 100644
--- a/lld/lib/ReaderWriter/ELF/Hexagon/HexagonELFFile.h
+++ b/lld/lib/ReaderWriter/ELF/Hexagon/HexagonELFFile.h
@@ -31,11 +31,10 @@ public:
DefinedAtom::ContentType contentType() const override {
if (this->_contentType != DefinedAtom::typeUnknown)
return this->_contentType;
- else if (this->_section->sh_flags & llvm::ELF::SHF_HEX_GPREL) {
+ if (this->_section->sh_flags & llvm::ELF::SHF_HEX_GPREL) {
if (this->_section->sh_type == llvm::ELF::SHT_NOBITS)
return (this->_contentType = DefinedAtom::typeZeroFillFast);
- else
- return (this->_contentType = DefinedAtom::typeDataFast);
+ return (this->_contentType = DefinedAtom::typeDataFast);
}
return ELFDefinedAtom<ELFT>::contentType();
}
OpenPOWER on IntegriCloud