projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3d8f879
)
Remove bogus error handling code.
author
Daniel Dunbar
<daniel@zuster.org>
Tue, 24 Nov 2009 19:03:33 +0000
(19:03 +0000)
committer
Daniel Dunbar
<daniel@zuster.org>
Tue, 24 Nov 2009 19:03:33 +0000
(19:03 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89786
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/System/Unix/Path.inc
patch
|
blob
|
history
diff --git
a/lib/System/Unix/Path.inc
b/lib/System/Unix/Path.inc
index d134aaa79b3f3deb404c0bb321dcc1cab63b1dfa..8dd76a741285c7c2329a433dcd28801eb1d6983f 100644
(file)
--- 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;
}