[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:23 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.
+ if (I == E)
----------------
jensmassberg wrote:
Thanks, I have refactored the code.
https://github.com/llvm/llvm-project/pull/94461
More information about the llvm-commits
mailing list