diff options
author | Michael J. Spencer <bigcheesegs@gmail.com> | 2011-01-11 01:21:55 +0000 |
---|---|---|
committer | Michael J. Spencer <bigcheesegs@gmail.com> | 2011-01-11 01:21:55 +0000 |
commit | 218dc3e2fe54c28b0292a3e89c5ed6563f62ac23 (patch) | |
tree | 14d22d940fea2720c93383a5f2dbda16488d2053 /lib/Support/Windows/Path.inc | |
parent | 121704d738f9de8aaf04b144dcf493130fbfee3d (diff) |
Support/Path: Deprecate PathV1::isDirectory and replace all uses with PathV2::is_directory.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123209 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/Windows/Path.inc')
-rw-r--r-- | lib/Support/Windows/Path.inc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Support/Windows/Path.inc b/lib/Support/Windows/Path.inc index 9100739ae0..625f67aa91 100644 --- a/lib/Support/Windows/Path.inc +++ b/lib/Support/Windows/Path.inc @@ -410,9 +410,10 @@ Path::canExecute() const { bool Path::isRegularFile() const { - if (isDirectory()) + bool res; + if (fs::is_regular_file(path, res)) return false; - return true; + return res; } StringRef |