summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/YAMLParser.cpp
diff options
context:
space:
mode:
authorSimon Pilgrim <llvm-dev@redking.me.uk>2019-11-09 22:11:50 +0000
committerSimon Pilgrim <llvm-dev@redking.me.uk>2019-11-09 22:11:50 +0000
commitb0d0928241a31b4da5cd6b22baba4c1b55211b4a (patch)
treed2a82a6e14ec74ecacb881ffbc9851f7e3bdf8a4 /llvm/lib/Support/YAMLParser.cpp
parent58236e6fa6c4338ae91e61028a416d592bb908b8 (diff)
downloadbcm5719-llvm-b0d0928241a31b4da5cd6b22baba4c1b55211b4a.tar.gz
bcm5719-llvm-b0d0928241a31b4da5cd6b22baba4c1b55211b4a.zip
YAMLParser - fix SimpleKey uninitialized variable warnings. NFCI.
Diffstat (limited to 'llvm/lib/Support/YAMLParser.cpp')
-rw-r--r--llvm/lib/Support/YAMLParser.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/Support/YAMLParser.cpp b/llvm/lib/Support/YAMLParser.cpp
index 95637bc36b4..333648dae2b 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;
OpenPOWER on IntegriCloud