File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -466,14 +466,14 @@ void Parser::ParseLexedMethodDeclaration(LateParsedMethodDeclaration &LM) {
466
466
ConsumeAnyToken ();
467
467
} else if (HasUnparsed) {
468
468
assert (Param->hasInheritedDefaultArg ());
469
- const FunctionDecl *Old;
469
+ FunctionDecl *Old;
470
470
if (const auto *FunTmpl = dyn_cast<FunctionTemplateDecl>(LM.Method ))
471
471
Old =
472
472
cast<FunctionDecl>(FunTmpl->getTemplatedDecl ())->getPreviousDecl ();
473
473
else
474
474
Old = cast<FunctionDecl>(LM.Method )->getPreviousDecl ();
475
475
if (Old) {
476
- ParmVarDecl *OldParam = const_cast <ParmVarDecl*>( Old->getParamDecl (I) );
476
+ ParmVarDecl *OldParam = Old->getParamDecl (I);
477
477
assert (!OldParam->hasUnparsedDefaultArg ());
478
478
if (OldParam->hasUninstantiatedDefaultArg ())
479
479
Param->setUninstantiatedDefaultArg (
You can’t perform that action at this time.
0 commit comments