]> granicus.if.org Git - llvm/commitdiff
Fix uninitialized variable warning. NFCI.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Wed, 2 Oct 2019 11:48:45 +0000 (11:48 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Wed, 2 Oct 2019 11:48:45 +0000 (11:48 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@373450 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Demangle/MicrosoftDemangle.cpp

index 4be6e5a233bcace412b46bd33efb5d4dc0a03c29..8c58254d6e0aa59e2eeeebca8f64756a85e395f1 100644 (file)
@@ -2179,7 +2179,7 @@ NodeArrayNode *Demangler::demangleFunctionParameterList(StringView &MangledName,
 
 NodeArrayNode *
 Demangler::demangleTemplateParameterList(StringView &MangledName) {
-  NodeList *Head;
+  NodeList *Head = nullptr;
   NodeList **Current = &Head;
   size_t Count = 0;