[lld] r267333 - [ELF] Simplify. Remove unneeded else. NFC.

Davide Italiano via llvm-commits llvm-commits at lists.llvm.org
Sun Apr 24 00:19:32 PDT 2016


Author: davide
Date: Sun Apr 24 02:19:32 2016
New Revision: 267333

URL: http://llvm.org/viewvc/llvm-project?rev=267333&view=rev
Log:
[ELF] Simplify. Remove unneeded else. NFC.

Modified:
    lld/trunk/ELF/Driver.cpp

Modified: lld/trunk/ELF/Driver.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Driver.cpp?rev=267333&r1=267332&r2=267333&view=diff
==============================================================================
--- lld/trunk/ELF/Driver.cpp (original)
+++ lld/trunk/ELF/Driver.cpp Sun Apr 24 02:19:32 2016
@@ -151,8 +151,7 @@ void LinkerDriver::addLibrary(StringRef
   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




More information about the llvm-commits mailing list