Skip to content

Commit adf6703

Browse files
author
Arthur O'Dwyer
committed
[clang] [NFC] Add const to a parameter that's not modified.
Reviewed as part of D119184.
1 parent 588d97e commit adf6703

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

clang/include/clang/Sema/Sema.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -8701,7 +8701,7 @@ class Sema final {
87018701

87028702
bool DeduceFunctionTypeFromReturnExpr(FunctionDecl *FD,
87038703
SourceLocation ReturnLoc,
8704-
Expr *&RetExpr, AutoType *AT);
8704+
Expr *&RetExpr, const AutoType *AT);
87058705

87068706
FunctionTemplateDecl *getMoreSpecializedTemplate(
87078707
FunctionTemplateDecl *FT1, FunctionTemplateDecl *FT2, SourceLocation Loc,

clang/lib/Sema/SemaStmt.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -3762,8 +3762,8 @@ TypeLoc Sema::getReturnTypeLoc(FunctionDecl *FD) const {
37623762
bool Sema::DeduceFunctionTypeFromReturnExpr(FunctionDecl *FD,
37633763
SourceLocation ReturnLoc,
37643764
Expr *&RetExpr,
3765-
AutoType *AT) {
3766-
// If this is the conversion function for a lambda, we choose to deduce it
3765+
const AutoType *AT) {
3766+
// If this is the conversion function for a lambda, we choose to deduce its
37673767
// type from the corresponding call operator, not from the synthesized return
37683768
// statement within it. See Sema::DeduceReturnType.
37693769
if (isLambdaConversionOperator(FD))

0 commit comments

Comments
 (0)