]> granicus.if.org Git - llvm/commitdiff
[VirtualFileSystem] Fix uninitialized variable warning. NFCI.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Wed, 22 May 2019 11:20:52 +0000 (11:20 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Wed, 22 May 2019 11:20:52 +0000 (11:20 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@361371 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Support/VirtualFileSystem.cpp

index f5a8a1e8a446cb3eabdcc8c406604ec9d0350e26..48ce31491a80c946fecffc86620282963e170abd 100644 (file)
@@ -1279,7 +1279,7 @@ class llvm::vfs::RedirectingFileSystemParser {
         EntryArrayContents;
     std::string ExternalContentsPath;
     std::string Name;
-    yaml::Node *NameValueNode;
+    yaml::Node *NameValueNode = nullptr;
     auto UseExternalName =
         RedirectingFileSystem::RedirectingFileEntry::NK_NotSet;
     RedirectingFileSystem::EntryKind Kind;