summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorSylvestre Ledru <sylvestre@debian.org>2014-06-16 20:51:40 +0000
committerSylvestre Ledru <sylvestre@debian.org>2014-06-16 20:51:40 +0000
commit0421d5e4cccdf43055681e5843d9a23c5e167d84 (patch)
treeb14e43c99f156882dd65a58e17d5d6d4c7dbd22c /tools
parent4a2040bc0e31b797d1e666c14c969b49016d0dad (diff)
downloadclang-0421d5e4cccdf43055681e5843d9a23c5e167d84.tar.gz
clang-0421d5e4cccdf43055681e5843d9a23c5e167d84.tar.bz2
clang-0421d5e4cccdf43055681e5843d9a23c5e167d84.tar.xz
actually, just check if it is a file (including directory or symlink)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@211053 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rwxr-xr-xtools/scan-build/scan-build2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/scan-build/scan-build b/tools/scan-build/scan-build
index b740cd21e6..e66b185aff 100755
--- a/tools/scan-build/scan-build
+++ b/tools/scan-build/scan-build
@@ -208,7 +208,7 @@ sub GetHTMLRunDir {
}
# Make sure that the directory does not exist in order to avoid hijack.
- if (-d $NewDir) {
+ if (-e $NewDir) {
DieDiag("The directory '$NewDir' already exists.\n");
}