commit | 218dc3e2fe54c28b0292a3e89c5ed6563f62ac23 | [log] [tgz] |
---|---|---|
author | Michael J. Spencer <bigcheesegs@gmail.com> | Tue Jan 11 01:21:55 2011 +0000 |
committer | Michael J. Spencer <bigcheesegs@gmail.com> | Tue Jan 11 01:21:55 2011 +0000 |
tree | 14d22d940fea2720c93383a5f2dbda16488d2053 | |
parent | 121704d738f9de8aaf04b144dcf493130fbfee3d [diff] [blame] |
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
diff --git a/lib/Support/Windows/Path.inc b/lib/Support/Windows/Path.inc index 9100739..625f67a 100644 --- a/lib/Support/Windows/Path.inc +++ b/lib/Support/Windows/Path.inc
@@ -410,9 +410,10 @@ bool Path::isRegularFile() const { - if (isDirectory()) + bool res; + if (fs::is_regular_file(path, res)) return false; - return true; + return res; } StringRef