From b0d0928241a31b4da5cd6b22baba4c1b55211b4a Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Sat, 9 Nov 2019 22:11:50 +0000 Subject: [PATCH] YAMLParser - fix SimpleKey uninitialized variable warnings. NFCI. --- llvm/lib/Support/YAMLParser.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/llvm/lib/Support/YAMLParser.cpp b/llvm/lib/Support/YAMLParser.cpp index 95637bc36b42f4..333648dae2b9c1 100644 --- a/llvm/lib/Support/YAMLParser.cpp +++ b/llvm/lib/Support/YAMLParser.cpp @@ -178,10 +178,10 @@ namespace { /// others) before the SimpleKey's Tok. struct SimpleKey { TokenQueueT::iterator Tok; - unsigned Column; - unsigned Line; - unsigned FlowLevel; - bool IsRequired; + unsigned Column = 0; + unsigned Line = 0; + unsigned FlowLevel = 0; + bool IsRequired = false; bool operator ==(const SimpleKey &Other) { return Tok == Other.Tok;