Remove bogus error handling code.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89786 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Daniel Dunbar 2009-11-24 19:03:33 +00:00
parent 3d8f87969b
commit 98e46d81c4

View File

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