Skip to content
Permalink
Browse files

YAMLParser - fix SimpleKey uninitialized variable warnings. NFCI.

  • Loading branch information
RKSimon committed Nov 9, 2019
1 parent 58236e6 commit b0d0928241a31b4da5cd6b22baba4c1b55211b4a
Showing with 4 additions and 4 deletions.
  1. +4 −4 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;

0 comments on commit b0d0928

Please sign in to comment.
You can’t perform that action at this time.