Reuse variable. NFC.
authorRafael Espindola <rafael.espindola@gmail.com>
Thu, 6 Aug 2015 14:51:02 +0000 (14:51 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Thu, 6 Aug 2015 14:51:02 +0000 (14:51 +0000)
llvm-svn: 244214

llvm/include/llvm/Object/ELF.h

index 4518ffa..46cfee5 100644 (file)
@@ -560,8 +560,7 @@ ELFFile<ELFT>::ELFFile(StringRef Object, std::error_code &EC)
   // 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;