From 0d771edeee525b2e5438e38c812af0c871133d0b Mon Sep 17 00:00:00 2001 From: "Michael J. Spencer" Date: Tue, 11 Jan 2011 01:21:55 +0000 Subject: Support/Path: Deprecate PathV1::isDirectory and replace all uses with PathV2::is_directory. llvm-svn: 123209 --- llvm/lib/Support/Windows/Path.inc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'llvm/lib/Support/Windows') 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 -- cgit v1.2.3