forked from OSchip/llvm-project
Make sure FileSystem::Resolve preserves the path/file distinction.
This should finally fix TestPaths.py. llvm-svn: 356057
This commit is contained in:
parent
506552351c
commit
81d03f3a8f
|
|
@ -264,7 +264,10 @@ void FileSystem::Resolve(FileSpec &file_spec) {
|
|||
Resolve(path);
|
||||
|
||||
// Update the FileSpec with the resolved path.
|
||||
file_spec.SetPath(path);
|
||||
if (file_spec.GetFilename().IsEmpty())
|
||||
file_spec.GetDirectory().SetString(path);
|
||||
else
|
||||
file_spec.SetPath(path);
|
||||
file_spec.SetIsResolved(true);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue