Make evaluation order explicit.

llvm-svn: 263762
This commit is contained in:
Rafael Espindola 2016-03-17 23:36:19 +00:00
parent c20c061749
commit 8381c565c3
1 changed files with 2 additions and 1 deletions

View File

@ -120,7 +120,8 @@ template <class ELFT> bool SymbolBody::isGnuIfunc() const {
template <class ELFT>
typename ELFT::uint SymbolBody::getVA(typename ELFT::uint Addend) const {
return getSymVA<ELFT>(*this, Addend) + Addend;
typename ELFT::uint OutVA = getSymVA<ELFT>(*this, Addend);
return OutVA + Addend;
}
template <class ELFT> typename ELFT::uint SymbolBody::getGotVA() const {