forked from OSchip/llvm-project
[ELF] Simplify. Remove unneeded else. NFC.
llvm-svn: 267333
This commit is contained in:
parent
5892c6b94b
commit
7d32a4d27f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue