Skip to content

Commit a465e35

Browse files
[Sema] Remove an unnecessary cast (NFC) (#146985)
Decl is already of FunctionDecl *.
1 parent f46c1d6 commit a465e35

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)