r321410 - [NFC] Remove a cast rendered unnecessary by r321409
Faisal Vali via cfe-commits
cfe-commits at lists.llvm.org
Sat Dec 23 11:27:07 PST 2017
Author: faisalv
Date: Sat Dec 23 11:27:07 2017
New Revision: 321410
URL: http://llvm.org/viewvc/llvm-project?rev=321410&view=rev
Log:
[NFC] Remove a cast rendered unnecessary by r321409
See https://reviews.llvm.org/rC321409 for additional context.
Modified:
cfe/trunk/lib/Parse/ParseTemplate.cpp
Modified: cfe/trunk/lib/Parse/ParseTemplate.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Parse/ParseTemplate.cpp?rev=321410&r1=321409&r2=321410&view=diff
==============================================================================
--- cfe/trunk/lib/Parse/ParseTemplate.cpp (original)
+++ cfe/trunk/lib/Parse/ParseTemplate.cpp Sat Dec 23 11:27:07 2017
@@ -375,7 +375,7 @@ Parser::ParseTemplateParameterList(unsig
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.
More information about the cfe-commits
mailing list