diff options
author | Jonas Devlieghere <jonas@devlieghere.com> | 2019-05-21 21:56:37 +0000 |
---|---|---|
committer | Jonas Devlieghere <jonas@devlieghere.com> | 2019-05-21 21:56:37 +0000 |
commit | feb9953081158b3f26c9916326a9a059acfbeae6 (patch) | |
tree | 9ddf7c6c1f0f5b26a310b8838363b6be4b0ecdc2 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | 675307b1f193d537549e29b0c1e51b9062e6ed48 (diff) | |
download | bcm5719-llvm-feb9953081158b3f26c9916326a9a059acfbeae6.tar.gz bcm5719-llvm-feb9953081158b3f26c9916326a9a059acfbeae6.zip |
[FileSystem] Fix regression in FileSystem::Resolve
When I moved the resolve code from FileSpec to the FileSystem class, I
introduced a regression. If you compare the two implementations, you'll
notice that if the path doesn't exist, we should only reverse the
effects of makeAbsolute, not the effects of tilde expansion.
As a result, the logic to create the ~/.lldb directory broke, because we
would resolve the path before creating it. Because the directory didn't
exist yet, we'd call create_directories on the unresolved path, which
failed.
Differential revision: https://reviews.llvm.org/D62219
llvm-svn: 361321
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions