diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-11-24 19:03:33 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-11-24 19:03:33 +0000 |
commit | 98e46d81c44bb20b1d322a2ff0bf0aa8317c28fc (patch) | |
tree | 68a73fcfdbf63cf0a5bad7af7ff59386813ab23a /lib | |
parent | 3d8f87969bb73db97d5a80fd7c5d12537fc8ef27 (diff) | |
download | external_llvm-98e46d81c44bb20b1d322a2ff0bf0aa8317c28fc.zip external_llvm-98e46d81c44bb20b1d322a2ff0bf0aa8317c28fc.tar.gz external_llvm-98e46d81c44bb20b1d322a2ff0bf0aa8317c28fc.tar.bz2 |
Remove bogus error handling code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89786 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/System/Unix/Path.inc | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/System/Unix/Path.inc b/lib/System/Unix/Path.inc index d134aaa..8dd76a7 100644 --- a/lib/System/Unix/Path.inc +++ b/lib/System/Unix/Path.inc @@ -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; } |