Skip to content

Commit f4ed7f8

Browse files
committed
[clang][Parse][NFC] Make a local variable const
1 parent 223d3da commit f4ed7f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/Parse/ParseDeclCXX.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2362,7 +2362,7 @@ void Parser::HandleMemberFunctionDeclDelays(Declarator &DeclaratorInfo,
23622362
if (!NeedLateParse) {
23632363
// Look ahead to see if there are any default args
23642364
for (unsigned ParamIdx = 0; ParamIdx < FTI.NumParams; ++ParamIdx) {
2365-
auto Param = cast<ParmVarDecl>(FTI.Params[ParamIdx].Param);
2365+
const auto *Param = cast<ParmVarDecl>(FTI.Params[ParamIdx].Param);
23662366
if (Param->hasUnparsedDefaultArg()) {
23672367
NeedLateParse = true;
23682368
break;

0 commit comments

Comments
 (0)