From 437cb16a8ce0025a424eea668e9597c650113830 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Thu, 6 Aug 2015 14:51:02 +0000 Subject: [PATCH] Reuse variable. NFC. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@244214 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Object/ELF.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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; -- 2.34.1