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 | 7402c472c359459dee6a5eaf42a111a1dbeb3673 (patch) | |
| tree | 4b412ebd25f733ad76e2ec81ee736d65f7b169be /llvm/lib | |
| parent | e66edc18ae0fc17169fa61d3c6fab9d48b1eb751 (diff) | |
| download | bcm5719-llvm-7402c472c359459dee6a5eaf42a111a1dbeb3673.tar.gz bcm5719-llvm-7402c472c359459dee6a5eaf42a111a1dbeb3673.zip | |
Remove bogus error handling code.
llvm-svn: 89786
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/System/Unix/Path.inc | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/llvm/lib/System/Unix/Path.inc b/llvm/lib/System/Unix/Path.inc index d134aaa79b3..8dd76a74128 100644 --- a/llvm/lib/System/Unix/Path.inc +++ b/llvm/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; } |

