[ELF] Simplify. Remove unneeded else. NFC.

llvm-svn: 267333
This commit is contained in:
Davide Italiano 2016-04-24 07:19:32 +00:00
parent 5892c6b94b
commit 7d32a4d27f
1 changed files with 1 additions and 2 deletions

View File

@ -151,8 +151,7 @@ void LinkerDriver::addLibrary(StringRef Name) {
std::string Path = searchLibrary(Name);
if (Path.empty())
error("unable to find library -l" + Name);
else
addFile(Path);
addFile(Path);
}
// This function is called on startup. We need this for LTO since