[llvm-commits] [llvm] r89786 - /llvm/trunk/lib/System/Unix/Path.inc
Daniel Dunbar
daniel at zuster.org
Tue Nov 24 11:03:33 PST 2009
Author: ddunbar
Date: Tue Nov 24 13:03:33 2009
New Revision: 89786
URL: http://llvm.org/viewvc/llvm-project?rev=89786&view=rev
Log:
Remove bogus error handling code.
Modified:
llvm/trunk/lib/System/Unix/Path.inc
Modified: llvm/trunk/lib/System/Unix/Path.inc
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/System/Unix/Path.inc?rev=89786&r1=89785&r2=89786&view=diff
==============================================================================
--- llvm/trunk/lib/System/Unix/Path.inc (original)
+++ llvm/trunk/lib/System/Unix/Path.inc Tue Nov 24 13:03:33 2009
@@ -457,16 +457,12 @@
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;
}
More information about the llvm-commits
mailing list