From: Rafael Espindola Date: Thu, 3 Apr 2014 21:48:41 +0000 (+0000) Subject: Reuse existing variable. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=da7ea68f0d5b6ca3e187ee463864c36a30a238f0;p=oota-llvm.git Reuse existing variable. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@205572 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/Object/ELFObjectFile.h b/include/llvm/Object/ELFObjectFile.h index 2958067a298..2592df2c506 100644 --- a/include/llvm/Object/ELFObjectFile.h +++ b/include/llvm/Object/ELFObjectFile.h @@ -256,8 +256,7 @@ error_code ELFObjectFile::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)