[llvm] [clang] Fix handling of adding a file with the same name as an existing dir to VFS (PR #94461)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 6 02:36:09 PDT 2024
================
@@ -893,6 +893,10 @@ bool InMemoryFileSystem::addFile(const Twine &P, time_t ModificationTime,
}
if (auto *NewDir = dyn_cast<detail::InMemoryDirectory>(Node)) {
+ // Trying to insert a file in place of a directory.
----------------
jensmassberg wrote:
With the refactored code we cover the case that a directory is added
https://github.com/llvm/llvm-project/pull/94461
More information about the llvm-commits
mailing list