[llvm] r244214 - Reuse variable. NFC.

Rafael Espindola via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 6 07:51:02 PDT 2015


Author: rafael
Date: Thu Aug  6 09:51:02 2015
New Revision: 244214

URL: http://llvm.org/viewvc/llvm-project?rev=244214&view=rev
Log:
Reuse variable. NFC.

Modified:
    llvm/trunk/include/llvm/Object/ELF.h

Modified: llvm/trunk/include/llvm/Object/ELF.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Object/ELF.h?rev=244214&r1=244213&r2=244214&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Object/ELF.h (original)
+++ llvm/trunk/include/llvm/Object/ELF.h Thu Aug  6 09:51:02 2015
@@ -560,8 +560,7 @@ ELFFile<ELFT>::ELFFile(StringRef Object,
   // Get string table sections.
   uintX_t StringTableIndex = getStringTableIndex();
   if (StringTableIndex) {
-    ErrorOr<const Elf_Shdr *> StrTabSecOrErr =
-        getSection(getStringTableIndex());
+    ErrorOr<const Elf_Shdr *> StrTabSecOrErr = getSection(StringTableIndex);
     if ((EC = StrTabSecOrErr.getError()))
       return;
 




More information about the llvm-commits mailing list