diff options
author | Chris Lattner <sabre@nondot.org> | 2009-08-12 17:47:06 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-08-12 17:47:06 +0000 |
commit | c02f3d866fad1882334acd4c0ce0cc5e2f3a9d3c (patch) | |
tree | 923b953696243af3a7915b9bac76e858ebc424fc | |
parent | 58043874ce36ad31b17986b71678594c76f19da7 (diff) | |
download | bcm5719-llvm-c02f3d866fad1882334acd4c0ce0cc5e2f3a9d3c.tar.gz bcm5719-llvm-c02f3d866fad1882334acd4c0ce0cc5e2f3a9d3c.zip |
improve win32 path support, patch by Baptiste Lepilleur!
llvm-svn: 78823
-rw-r--r-- | llvm/lib/System/Win32/Path.inc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/System/Win32/Path.inc b/llvm/lib/System/Win32/Path.inc index 80c7bd9eabe..fccf001b355 100644 --- a/llvm/lib/System/Win32/Path.inc +++ b/llvm/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] == '\\')); } } |