Index: llvm/unittests/Support/VirtualFileSystemTest.cpp =================================================================== --- llvm/unittests/Support/VirtualFileSystemTest.cpp +++ llvm/unittests/Support/VirtualFileSystemTest.cpp @@ -2197,8 +2197,8 @@ ScopedFile _cd(TestDirectory + "/c/d", ""); ScopedDir _e(TestDirectory + "/e"); ScopedDir _ef(TestDirectory + "/e/f"); - ScopedDir _g(TestDirectory + "/g"); - ScopedFile _h(TestDirectory + "/h", ""); + ScopedFile _g(TestDirectory + "/g", ""); + ScopedDir _h(TestDirectory + "/h"); vfs::YAMLVFSWriter VFSWriter; VFSWriter.addDirectoryMapping(_a.Path, "//root/a"); @@ -2223,8 +2223,8 @@ Lower->addRegularFile("//root/c/d"); Lower->addDirectory("//root/e"); Lower->addDirectory("//root/e/f"); - Lower->addDirectory("//root/g"); - Lower->addRegularFile("//root/h"); + Lower->addRegularFile("//root/g"); + Lower->addDirectory("//root/h"); IntrusiveRefCntPtr FS = getFromYAMLRawString(Buffer, Lower); ASSERT_TRUE(FS.get() != nullptr);