[NFC] Remove a cast rendered unnecessary by r321409

See https://reviews.llvm.org/rC321409 for additional context.

llvm-svn: 321410
This commit is contained in:
Faisal Vali 2017-12-23 19:27:07 +00:00
parent be29403633
commit d9548c350f
1 changed files with 1 additions and 1 deletions

View File

@ -375,7 +375,7 @@ Parser::ParseTemplateParameterList(unsigned Depth,
if (NamedDecl *TmpParam
= ParseTemplateParameter(Depth, TemplateParams.size())) {
TemplateParams.push_back(dyn_cast<NamedDecl>(TmpParam));
TemplateParams.push_back(TmpParam);
} else {
// If we failed to parse a template parameter, skip until we find
// a comma or closing brace.