From: Chris Lattner Date: Wed, 12 Aug 2009 17:47:06 +0000 (+0000) Subject: improve win32 path support, patch by Baptiste Lepilleur! X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a79eefd4f862af68dc9e77bed537581aa4f5f806;p=llvm 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 --- 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] == '\\')); } }