diff options
Diffstat (limited to 'clang/lib/Basic/VirtualFileSystem.cpp')
-rw-r--r-- | clang/lib/Basic/VirtualFileSystem.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Basic/VirtualFileSystem.cpp b/clang/lib/Basic/VirtualFileSystem.cpp index ced370c..cb09e2e 100644 --- a/clang/lib/Basic/VirtualFileSystem.cpp +++ b/clang/lib/Basic/VirtualFileSystem.cpp @@ -497,7 +497,7 @@ void InMemoryFileSystem::addFile(const Twine &P, time_t ModificationTime, assert(!EC); (void)EC; - FileManager::removeDotPaths(Path, /*RemoveDotDot=*/true); + FileManager::removeDotPaths(Path, /*RemoveDotDot=*/false); if (Path.empty()) return; @@ -556,7 +556,7 @@ lookupInMemoryNode(const InMemoryFileSystem &FS, detail::InMemoryDirectory *Dir, assert(!EC); (void)EC; - FileManager::removeDotPaths(Path, /*RemoveDotDot=*/true); + FileManager::removeDotPaths(Path, /*RemoveDotDot=*/false); if (Path.empty()) return Dir; |