1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 19:23:23 +01:00

improve win32 path support, patch by Baptiste Lepilleur!

llvm-svn: 78823
This commit is contained in:
Chris Lattner 2009-08-12 17:47:06 +00:00
parent f126196725
commit 660497ce3b

View File

@ -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] == '\\'));
}
}