From: Rafael Espindola Date: Thu, 6 Aug 2015 14:51:02 +0000 (+0000) Subject: Reuse variable. NFC. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=437cb16a8ce0025a424eea668e9597c650113830;p=oota-llvm.git Reuse variable. NFC. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@244214 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/Object/ELF.h b/include/llvm/Object/ELF.h index 4518ffae661..46cfee5aec7 100644 --- a/include/llvm/Object/ELF.h +++ b/include/llvm/Object/ELF.h @@ -560,8 +560,7 @@ ELFFile::ELFFile(StringRef Object, std::error_code &EC) // Get string table sections. uintX_t StringTableIndex = getStringTableIndex(); if (StringTableIndex) { - ErrorOr StrTabSecOrErr = - getSection(getStringTableIndex()); + ErrorOr StrTabSecOrErr = getSection(StringTableIndex); if ((EC = StrTabSecOrErr.getError())) return;