diff --git a/lld/ELF/Symbols.cpp b/lld/ELF/Symbols.cpp index 95a599584322..53b9660411b7 100644 --- a/lld/ELF/Symbols.cpp +++ b/lld/ELF/Symbols.cpp @@ -66,8 +66,7 @@ getSymVA(const SymbolBody &Body, typename ELFFile::uintX_t &Addend) { return 0; if (SS.IsFunc) return Body.getPltVA(); - else - return Out::Bss->getVA() + SS.OffsetInBss; + return Out::Bss->getVA() + SS.OffsetInBss; } case SymbolBody::UndefinedElfKind: case SymbolBody::UndefinedKind: