Added LLVM_FALLTHROUGH to address warning: this statement may fall through. NFC.

llvm-svn: 304481
This commit is contained in:
Galina Kistanova 2017-06-01 21:29:45 +00:00
parent de1b318dad
commit 53ab424c0b
1 changed files with 2 additions and 0 deletions

View File

@ -1450,6 +1450,7 @@ Parser::isCXXDeclarationSpecifier(Parser::TPResult BracedCastResult,
return TPResult::False;
}
// If that succeeded, fallthrough into the generic simple-type-id case.
LLVM_FALLTHROUGH;
// The ambiguity resides in a simple-type-specifier/typename-specifier
// followed by a '('. The '(' could either be the start of:
@ -1492,6 +1493,7 @@ Parser::isCXXDeclarationSpecifier(Parser::TPResult BracedCastResult,
return TPResult::True;
}
LLVM_FALLTHROUGH;
case tok::kw_char:
case tok::kw_wchar_t: