summaryrefslogtreecommitdiffstats
path: root/llvm/lib/System/Win32/Path.inc
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/System/Win32/Path.inc')
-rw-r--r--llvm/lib/System/Win32/Path.inc4
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/System/Win32/Path.inc b/llvm/lib/System/Win32/Path.inc
index 35bae337da7..357cb2f27ee 100644
--- a/llvm/lib/System/Win32/Path.inc
+++ b/llvm/lib/System/Win32/Path.inc
@@ -229,7 +229,9 @@ Path::isRootDirectory() const {
return len > 0 && path[len-1] == '/';
}
-std::string Path::getDirname() const { return getDirnameCharSep('\\'); }
+std::string Path::getDirname() const {
+ return getDirnameCharSep(path, '\\');
+}
std::string
Path::getBasename() const {
OpenPOWER on IntegriCloud