summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2017-08-01 04:18:57 +0000
committerRui Ueyama <ruiu@google.com>2017-08-01 04:18:57 +0000
commitbe5f98fa336efb3af7893a270283d49926ee449c (patch)
tree4e7b13d184cad045a8021ddd71b1fde00fc4cb80
parent936395b428ff238e49df1187a6cf9cd88c47f30b (diff)
downloadbcm5719-llvm-be5f98fa336efb3af7893a270283d49926ee449c.tar.gz
bcm5719-llvm-be5f98fa336efb3af7893a270283d49926ee449c.zip
Remove a redundant temporary variable.
llvm-svn: 309654
-rw-r--r--lld/ELF/GdbIndex.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lld/ELF/GdbIndex.cpp b/lld/ELF/GdbIndex.cpp
index d7313af0bdf..952092182fb 100644
--- a/lld/ELF/GdbIndex.cpp
+++ b/lld/ELF/GdbIndex.cpp
@@ -99,8 +99,7 @@ LLDDwarfObj<ELFT>::findAux(const InputSectionBase &Sec, uint64_t Pos,
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>
OpenPOWER on IntegriCloud