Remove bogus error handling code.

llvm-svn: 89786
This commit is contained in:
Daniel Dunbar 2009-11-24 19:03:33 +00:00
parent e66edc18ae
commit 7402c472c3
1 changed files with 2 additions and 6 deletions

View File

@ -457,16 +457,12 @@ bool
Path::isSpecialFile() const { Path::isSpecialFile() const {
// Get the status so we can determine if its a file or directory // Get the status so we can determine if its a file or directory
struct stat buf; struct stat buf;
std::string *ErrStr;
if (0 != stat(path.c_str(), &buf)) { if (0 != stat(path.c_str(), &buf))
MakeErrMsg(ErrStr, path + ": can't get status of file");
return true; return true;
}
if (S_ISDIR(buf.st_mode) || S_ISREG(buf.st_mode)) { if (S_ISDIR(buf.st_mode) || S_ISREG(buf.st_mode))
return false; return false;
}
return true; return true;
} }