[ELF] Reinstate 'else' which was previously removed.
It turns out it's actually needed. llvm-svn: 267358
This commit is contained in:
parent
83020942d3
commit
bfccefd514
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue