From 90b3daaa5c73cb92abd1f39df769d969227860f5 Mon Sep 17 00:00:00 2001 From: Rui Ueyama Date: Wed, 30 Sep 2015 02:37:51 +0000 Subject: [PATCH] Remove `else` after `return`. llvm-svn: 248875 --- lld/ELF/InputFiles.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/lld/ELF/InputFiles.cpp b/lld/ELF/InputFiles.cpp index ba2c2377d438..ebd666ee37fb 100644 --- a/lld/ELF/InputFiles.cpp +++ b/lld/ELF/InputFiles.cpp @@ -71,10 +71,9 @@ ELFData::getSymbolsHelper(bool Local) { if (FirstNonLocal > NumSymbols) error("Invalid sh_info in symbol table"); if (!Local) - return llvm::make_range(Syms.begin() + FirstNonLocal, Syms.end()); - else - // Skip over dummy symbol. - return llvm::make_range(Syms.begin() + 1, Syms.begin() + FirstNonLocal); + return make_range(Syms.begin() + FirstNonLocal, Syms.end()); + // +1 to skip over dummy symbol. + return make_range(Syms.begin() + 1, Syms.begin() + FirstNonLocal); } template