From 71fab2f03b6136e8d6cc9974e5918132614af9b2 Mon Sep 17 00:00:00 2001 From: Rui Ueyama Date: Mon, 26 Jun 2017 16:52:16 +0000 Subject: [PATCH] Remove confusing `return`. `addInputSec` returns void. Even though it is syntactically correct, the use of `return` here is just confusing. llvm-svn: 306307 --- lld/ELF/OutputSections.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lld/ELF/OutputSections.cpp b/lld/ELF/OutputSections.cpp index 2fc201c5e8a9..c0bf6b32e6e2 100644 --- a/lld/ELF/OutputSections.cpp +++ b/lld/ELF/OutputSections.cpp @@ -305,7 +305,7 @@ void OutputSectionFactory::addInputSec(InputSectionBase *IS, SectionKey Key = createKey(IS, OutsecName); OutputSection *&Sec = Map[Key]; - return addInputSec(IS, OutsecName, Sec); + addInputSec(IS, OutsecName, Sec); } void OutputSectionFactory::addInputSec(InputSectionBase *IS,