Skip to content

Commit

Permalink
YAMLParser - fix SimpleKey uninitialized variable warnings. NFCI.
Browse files Browse the repository at this point in the history
  • Loading branch information
RKSimon committed Nov 9, 2019
1 parent 58236e6 commit b0d0928
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions llvm/lib/Support/YAMLParser.cpp
Expand Up @@ -178,10 +178,10 @@ namespace {
/// others) before the SimpleKey's Tok. /// others) before the SimpleKey's Tok.
struct SimpleKey { struct SimpleKey {
TokenQueueT::iterator Tok; TokenQueueT::iterator Tok;
unsigned Column; unsigned Column = 0;
unsigned Line; unsigned Line = 0;
unsigned FlowLevel; unsigned FlowLevel = 0;
bool IsRequired; bool IsRequired = false;


bool operator ==(const SimpleKey &Other) { bool operator ==(const SimpleKey &Other) {
return Tok == Other.Tok; return Tok == Other.Tok;
Expand Down

0 comments on commit b0d0928

Please sign in to comment.