From a79eefd4f862af68dc9e77bed537581aa4f5f806 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 12 Aug 2009 17:47:06 +0000 Subject: [PATCH] improve win32 path support, patch by Baptiste Lepilleur! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78823 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/System/Win32/Path.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/System/Win32/Path.inc b/lib/System/Win32/Path.inc index 80c7bd9eabe..fccf001b355 100644 --- a/lib/System/Win32/Path.inc +++ b/lib/System/Win32/Path.inc @@ -156,7 +156,8 @@ Path::isAbsolute(const char *NameStart, unsigned NameLen) { case 2: return NameStart[0] == '/'; default: - return NameStart[0] == '/' || (NameStart[1] == ':' && NameStart[2] == '/'); + return (NameStart[0] == '/' || (NameStart[1] == ':' && NameStart[2] == '/')) || + (NameStart[0] == '\\' || (NameStart[1] == ':' && NameStart[2] == '\\')); } } -- 2.34.1