[ELF] Reinstate 'else' which was previously removed.

It turns out it's actually needed.

llvm-svn: 267358
This commit is contained in:
Davide Italiano 2016-04-24 18:23:21 +00:00
parent 83020942d3
commit bfccefd514
1 changed files with 2 additions and 1 deletions

View File

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