Remove a redundant syscall.

llvm-svn: 29405
This commit is contained in:
Chris Lattner 2006-07-28 22:52:11 +00:00
parent 149130ad6b
commit e58f7408d0
1 changed files with 18 additions and 22 deletions

View File

@ -119,9 +119,6 @@ static inline sys::Path IsLibrary(const std::string& Name,
sys::Path FullPath(Directory);
// Make sure the directory actually is a directory in the file system.
if (FullPath.isDirectory())
{
// Try the libX.a form
FullPath.appendComponent("lib" + Name);
FullPath.appendSuffix("a");
@ -143,7 +140,6 @@ static inline sys::Path IsLibrary(const std::string& Name,
return FullPath;
// Not found .. fall through
}
// Indicate that the library was not found in the directory.
FullPath.clear();