Skip to content

Commit 0c026bf

Browse files
[Sema] Remove an unnecessary cast (NFC)
Decl is already of FunctionDecl *.
1 parent 61529d9 commit 0c026bf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang/lib/Sema/SemaConcept.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1138,8 +1138,8 @@ bool Sema::CheckFunctionTemplateConstraints(
11381138
}
11391139

11401140
CXXThisScopeRAII ThisScope(*this, Record, ThisQuals, Record != nullptr);
1141-
LambdaScopeForCallOperatorInstantiationRAII LambdaScope(
1142-
*this, const_cast<FunctionDecl *>(Decl), *MLTAL, Scope);
1141+
LambdaScopeForCallOperatorInstantiationRAII LambdaScope(*this, Decl, *MLTAL,
1142+
Scope);
11431143

11441144
return CheckConstraintSatisfaction(Template, TemplateAC, *MLTAL,
11451145
PointOfInstantiation, Satisfaction);

0 commit comments

Comments
 (0)