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:
parent
f126196725
commit
660497ce3b
@ -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] == '\\'));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user