Remove `else` after `return`.

llvm-svn: 248875
This commit is contained in:
Rui Ueyama 2015-09-30 02:37:51 +00:00
parent 294b136db4
commit 90b3daaa5c
1 changed files with 3 additions and 4 deletions

View File

@ -71,10 +71,9 @@ ELFData<ELFT>::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 <class ELFT>