projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5065523
)
Make sure FileSystem::Resolve preserves the path/file distinction.
author
Adrian Prantl
<aprantl@apple.com>
Wed, 13 Mar 2019 15:54:18 +0000
(15:54 +0000)
committer
Adrian Prantl
<aprantl@apple.com>
Wed, 13 Mar 2019 15:54:18 +0000
(15:54 +0000)
This should finally fix TestPaths.py.
llvm-svn: 356057
lldb/source/Host/common/FileSystem.cpp
patch
|
blob
|
history
diff --git
a/lldb/source/Host/common/FileSystem.cpp
b/lldb/source/Host/common/FileSystem.cpp
index
7ce8634
..
0c88405
100644
(file)
--- a/
lldb/source/Host/common/FileSystem.cpp
+++ b/
lldb/source/Host/common/FileSystem.cpp
@@
-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);
}