diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2010-10-30 08:28:42 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2010-10-30 08:28:42 +0000 |
commit | 7d11382b8cf91739d3e65121823aee3112e8c497 (patch) | |
tree | fda2b86c1c11bb23a6b898922610a6355f3a86a5 | |
parent | e1e6797b0733024a84a7b0aac71ef3d229655a8b (diff) | |
download | bcm5719-llvm-7d11382b8cf91739d3e65121823aee3112e8c497.tar.gz bcm5719-llvm-7d11382b8cf91739d3e65121823aee3112e8c497.zip |
Use the expanded form of S_ISREG. Hopefully this unbreaks the MSVC build.
llvm-svn: 117779
-rw-r--r-- | clang/lib/Driver/Compilation.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Driver/Compilation.cpp b/clang/lib/Driver/Compilation.cpp index 066e88ebe12..446b2ed5f18 100644 --- a/clang/lib/Driver/Compilation.cpp +++ b/clang/lib/Driver/Compilation.cpp @@ -108,7 +108,7 @@ bool Compilation::CleanupFileList(const ArgStringList &Files, // FIXME: Grumble, P.exists() is broken. PR3837. struct stat buf; - if (::stat(P.c_str(), &buf) == 0 ? S_ISREG(buf.st_mode) : + if (::stat(P.c_str(), &buf) == 0 ? (buf.st_mode & S_IFMT) == S_IFREG : (errno != ENOENT)) { if (IssueErrors) getDriver().Diag(clang::diag::err_drv_unable_to_remove_file) |