[llvm] [clang] Fix handling of adding a file with the same name as an existing dir to VFS (PR #94461)
kadir çetinkaya via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 5 21:55:40 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.
----------------
kadircet wrote:
not sure if this is always the case, we might as well be inserting new-file as a directory
https://github.com/llvm/llvm-project/pull/94461
More information about the llvm-commits
mailing list