Revert rL361731 : [LLParser] Fix uninitialized variable warnings. NFCI.

These 3 variables cause quite a few warnings in the scan-build report on llvm.
........
Revert accidental commit.

llvm-svn: 361732
This commit is contained in:
Simon Pilgrim 2019-05-26 15:08:45 +00:00
parent aabe7781a5
commit e434368a67
1 changed files with 3 additions and 3 deletions

View File

@ -8484,13 +8484,13 @@ bool LLParser::ParseGVFlags(GlobalValueSummary::GVFlags &GVFlags) {
return true;
do {
unsigned Flag = 0;
unsigned Flag;
switch (Lex.getKind()) {
case lltok::kw_linkage:
Lex.Lex();
if (ParseToken(lltok::colon, "expected ':'"))
return true;
bool HasLinkage = false;
bool HasLinkage;
GVFlags.Linkage = parseOptionalLinkageAux(Lex.getKind(), HasLinkage);
assert(HasLinkage && "Linkage not optional in summary entry");
Lex.Lex();
@ -8536,7 +8536,7 @@ bool LLParser::ParseGVarFlags(GlobalVarSummary::GVarFlags &GVarFlags) {
assert(Lex.getKind() == lltok::kw_varFlags);
Lex.Lex();
unsigned Flag = 0;
unsigned Flag;
if (ParseToken(lltok::colon, "expected ':' here") ||
ParseToken(lltok::lparen, "expected '(' here") ||
ParseToken(lltok::kw_readonly, "expected 'readonly' here") ||