"UNIX paths can contain non-ASCII characters, so Path::isValid() should not reject paths with such characters in them. The attached patch removes the check from Path::isValid()."

patch by Benjamin Kramer!

llvm-svn: 75421
This commit is contained in:
Chris Lattner 2009-07-12 19:01:16 +00:00
parent d37908f149
commit a3c69aeb65
1 changed files with 1 additions and 9 deletions

View File

@ -92,15 +92,7 @@ Path::isValid() const {
// Check some obvious things
if (path.empty())
return false;
else if (path.length() >= MAXPATHLEN)
return false;
// Check that the characters are ascii chars
size_t len = path.length();
unsigned i = 0;
while (i < len && isascii(path[i]))
++i;
return i >= len;
return path.length() < MAXPATHLEN;
}
bool