Skip to content

Commit

Permalink
[clang][Parse][NFC] Make a local variable const
Browse files Browse the repository at this point in the history
  • Loading branch information
tbaederr committed Jan 25, 2024
1 parent 223d3da commit f4ed7f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clang/lib/Parse/ParseDeclCXX.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2362,7 +2362,7 @@ void Parser::HandleMemberFunctionDeclDelays(Declarator &DeclaratorInfo,
if (!NeedLateParse) {
// Look ahead to see if there are any default args
for (unsigned ParamIdx = 0; ParamIdx < FTI.NumParams; ++ParamIdx) {
auto Param = cast<ParmVarDecl>(FTI.Params[ParamIdx].Param);
const auto *Param = cast<ParmVarDecl>(FTI.Params[ParamIdx].Param);
if (Param->hasUnparsedDefaultArg()) {
NeedLateParse = true;
break;
Expand Down

0 comments on commit f4ed7f8

Please sign in to comment.