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 | 0d771edeee525b2e5438e38c812af0c871133d0b (patch) | |
tree | 0ba37a576e1931156f7891ed3bbdf9e48298bf84 /llvm/lib/Support/Windows | |
parent | e503f89b4b146fc2d3f23d9ed04b4d1f79f3a129 (diff) | |
download | bcm5719-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/Windows')
-rw-r--r-- | llvm/lib/Support/Windows/Path.inc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/Support/Windows/Path.inc b/llvm/lib/Support/Windows/Path.inc index 9100739ae0d..625f67aa912 100644 --- a/llvm/lib/Support/Windows/Path.inc +++ b/llvm/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 |