diff --git a/lld/ELF/Symbols.cpp b/lld/ELF/Symbols.cpp index e32473e3bd8a..3fffb15ff14b 100644 --- a/lld/ELF/Symbols.cpp +++ b/lld/ELF/Symbols.cpp @@ -120,7 +120,8 @@ template bool SymbolBody::isGnuIfunc() const { template typename ELFT::uint SymbolBody::getVA(typename ELFT::uint Addend) const { - return getSymVA(*this, Addend) + Addend; + typename ELFT::uint OutVA = getSymVA(*this, Addend); + return OutVA + Addend; } template typename ELFT::uint SymbolBody::getGotVA() const {