Reuse existing variable.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@205572 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Rafael Espindola 2014-04-03 21:48:41 +00:00
parent 25540a7f39
commit da7ea68f0d

View File

@ -256,8 +256,7 @@ error_code ELFObjectFile<ELFT>::getSymbolAddress(DataRefImpl Symb,
Result = ESym->st_value;
// Clear the ARM/Thumb indicator flag.
if (EF.getHeader()->e_machine == ELF::EM_ARM &&
ESym->getType() == ELF::STT_FUNC)
if (Header->e_machine == ELF::EM_ARM && ESym->getType() == ELF::STT_FUNC)
Result &= ~1;
if (Header->e_type == ELF::ET_REL)