forked from OSchip/llvm-project
Fix a bug where "." or any single character file name doesn't get the
terminating / when setDirectory is called. llvm-svn: 18886
This commit is contained in:
parent
a85abc23d5
commit
790100674a
|
@ -300,7 +300,7 @@ Path::setDirectory(const std::string& a_path) {
|
||||||
path = a_path;
|
path = a_path;
|
||||||
FlipBackSlashes(path);
|
FlipBackSlashes(path);
|
||||||
size_t last = a_path.size() -1;
|
size_t last = a_path.size() -1;
|
||||||
if (last != 0 && a_path[last] != '/')
|
if (a_path[last] != '/')
|
||||||
path += '/';
|
path += '/';
|
||||||
if (!isValid()) {
|
if (!isValid()) {
|
||||||
path = save.path;
|
path = save.path;
|
||||||
|
|
Loading…
Reference in New Issue