forked from OSchip/llvm-project
VirtualFileSystem - fix uninitialized variable warnings. NFCI.
This commit is contained in:
parent
67286c8785
commit
e1000f1d67
|
@ -894,7 +894,7 @@ class InMemoryDirIterator : public llvm::vfs::detail::DirIterImpl {
|
|||
if (I != E) {
|
||||
SmallString<256> Path(RequestedDirName);
|
||||
llvm::sys::path::append(Path, I->second->getFileName());
|
||||
sys::fs::file_type Type;
|
||||
sys::fs::file_type Type = sys::fs::file_type::type_unknown;
|
||||
switch (I->second->getKind()) {
|
||||
case detail::IME_File:
|
||||
case detail::IME_HardLink:
|
||||
|
@ -2073,7 +2073,7 @@ std::error_code VFSFromYamlDirIterImpl::incrementContent(bool IsFirstTime) {
|
|||
while (Current != End) {
|
||||
SmallString<128> PathStr(Dir);
|
||||
llvm::sys::path::append(PathStr, (*Current)->getName());
|
||||
sys::fs::file_type Type;
|
||||
sys::fs::file_type Type = sys::fs::file_type::type_unknown;
|
||||
switch ((*Current)->getKind()) {
|
||||
case RedirectingFileSystem::EK_Directory:
|
||||
Type = sys::fs::file_type::directory_file;
|
||||
|
|
Loading…
Reference in New Issue