summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support
diff options
context:
space:
mode:
authorSimon Pilgrim <llvm-dev@redking.me.uk>2019-11-04 17:23:07 +0000
committerSimon Pilgrim <llvm-dev@redking.me.uk>2019-11-04 17:24:35 +0000
commite1000f1d674186c095eac2f252d45ff5b9306db7 (patch)
treecce873cb29f30b84109049beddc773558c7fe7f8 /llvm/lib/Support
parent67286c87854adaa5d2826069ce685012e41ce05c (diff)
downloadbcm5719-llvm-e1000f1d674186c095eac2f252d45ff5b9306db7.tar.gz
bcm5719-llvm-e1000f1d674186c095eac2f252d45ff5b9306db7.zip
VirtualFileSystem - fix uninitialized variable warnings. NFCI.
Diffstat (limited to 'llvm/lib/Support')
-rw-r--r--llvm/lib/Support/VirtualFileSystem.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Support/VirtualFileSystem.cpp b/llvm/lib/Support/VirtualFileSystem.cpp
index c390cb1b222..40b748eab18 100644
--- a/llvm/lib/Support/VirtualFileSystem.cpp
+++ b/llvm/lib/Support/VirtualFileSystem.cpp
@@ -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;
OpenPOWER on IntegriCloud