[lld] r309654 - Remove a redundant temporary variable.

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 31 21:18:57 PDT 2017


Author: ruiu
Date: Mon Jul 31 21:18:57 2017
New Revision: 309654

URL: http://llvm.org/viewvc/llvm-project?rev=309654&view=rev
Log:
Remove a redundant temporary variable.

Modified:
    lld/trunk/ELF/GdbIndex.cpp

Modified: lld/trunk/ELF/GdbIndex.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/GdbIndex.cpp?rev=309654&r1=309653&r2=309654&view=diff
==============================================================================
--- lld/trunk/ELF/GdbIndex.cpp (original)
+++ lld/trunk/ELF/GdbIndex.cpp Mon Jul 31 21:18:57 2017
@@ -99,8 +99,7 @@ LLDDwarfObj<ELFT>::findAux(const InputSe
   if (DR.Section->Flags & ELF::SHF_ALLOC)
     Val += cast<InputSection>(DR.Section)->getOffsetInFile();
 
-  RelocAddrEntry Ret{SecIndex, Val};
-  return Ret;
+  return RelocAddrEntry{SecIndex, Val};
 }
 
 template <class ELFT>




More information about the llvm-commits mailing list