summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/Unix/Path.inc
diff options
context:
space:
mode:
authorMichael J. Spencer <bigcheesegs@gmail.com>2011-01-11 01:21:55 +0000
committerMichael J. Spencer <bigcheesegs@gmail.com>2011-01-11 01:21:55 +0000
commit0d771edeee525b2e5438e38c812af0c871133d0b (patch)
tree0ba37a576e1931156f7891ed3bbdf9e48298bf84 /llvm/lib/Support/Unix/Path.inc
parente503f89b4b146fc2d3f23d9ed04b4d1f79f3a129 (diff)
downloadbcm5719-llvm-0d771edeee525b2e5438e38c812af0c871133d0b.tar.gz
bcm5719-llvm-0d771edeee525b2e5438e38c812af0c871133d0b.zip
Support/Path: Deprecate PathV1::isDirectory and replace all uses with PathV2::is_directory.
llvm-svn: 123209
Diffstat (limited to 'llvm/lib/Support/Unix/Path.inc')
-rw-r--r--llvm/lib/Support/Unix/Path.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Support/Unix/Path.inc b/llvm/lib/Support/Unix/Path.inc
index b39e465a535..bdd13a64b01 100644
--- a/llvm/lib/Support/Unix/Path.inc
+++ b/llvm/lib/Support/Unix/Path.inc
@@ -823,7 +823,8 @@ Path::makeUnique(bool reuse_current, std::string* ErrMsg) {
Buf.resize(path.size()+8);
char *FNBuffer = &Buf[0];
path.copy(FNBuffer,path.size());
- if (isDirectory())
+ bool isdir;
+ if (!fs::is_directory(path, isdir) && isdir)
strcpy(FNBuffer+path.size(), "/XXXXXX");
else
strcpy(FNBuffer+path.size(), "-XXXXXX");
OpenPOWER on IntegriCloud