Added LLVM_FALLTHROUGH to address warning: this statement may fall through. NFC.
llvm-svn: 304646
This commit is contained in:
parent
e37ad5a79e
commit
27daec6870
|
@ -763,6 +763,7 @@ Parser::ParseExternalDeclaration(ParsedAttributesWithRange &attrs,
|
||||||
}
|
}
|
||||||
// This must be 'export template'. Parse it so we can diagnose our lack
|
// This must be 'export template'. Parse it so we can diagnose our lack
|
||||||
// of support.
|
// of support.
|
||||||
|
LLVM_FALLTHROUGH;
|
||||||
case tok::kw_using:
|
case tok::kw_using:
|
||||||
case tok::kw_namespace:
|
case tok::kw_namespace:
|
||||||
case tok::kw_typedef:
|
case tok::kw_typedef:
|
||||||
|
@ -1875,6 +1876,7 @@ bool Parser::isTokenEqualOrEqualTypo() {
|
||||||
Diag(Tok, diag::err_invalid_token_after_declarator_suggest_equal)
|
Diag(Tok, diag::err_invalid_token_after_declarator_suggest_equal)
|
||||||
<< Kind
|
<< Kind
|
||||||
<< FixItHint::CreateReplacement(SourceRange(Tok.getLocation()), "=");
|
<< FixItHint::CreateReplacement(SourceRange(Tok.getLocation()), "=");
|
||||||
|
LLVM_FALLTHROUGH;
|
||||||
case tok::equal:
|
case tok::equal:
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue