[llvm] r373450 - Fix uninitialized variable warning. NFCI.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 2 04:48:45 PDT 2019
Author: rksimon
Date: Wed Oct 2 04:48:45 2019
New Revision: 373450
URL: http://llvm.org/viewvc/llvm-project?rev=373450&view=rev
Log:
Fix uninitialized variable warning. NFCI.
Modified:
llvm/trunk/lib/Demangle/MicrosoftDemangle.cpp
Modified: llvm/trunk/lib/Demangle/MicrosoftDemangle.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Demangle/MicrosoftDemangle.cpp?rev=373450&r1=373449&r2=373450&view=diff
==============================================================================
--- llvm/trunk/lib/Demangle/MicrosoftDemangle.cpp (original)
+++ llvm/trunk/lib/Demangle/MicrosoftDemangle.cpp Wed Oct 2 04:48:45 2019
@@ -2179,7 +2179,7 @@ NodeArrayNode *Demangler::demangleFuncti
NodeArrayNode *
Demangler::demangleTemplateParameterList(StringView &MangledName) {
- NodeList *Head;
+ NodeList *Head = nullptr;
NodeList **Current = &Head;
size_t Count = 0;
More information about the llvm-commits
mailing list