aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Sema/SemaConcept.cpp
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2025-07-04 07:56:28 -0700
committerGitHub <noreply@github.com>2025-07-04 07:56:28 -0700
commita465e35908b65563c7be96a9cc514c38e1bf8b8e (patch)
tree599a8dd34a6c5baf49af8aacb67570827732482c /clang/lib/Sema/SemaConcept.cpp
parentf46c1d6bcc3b26bfcc81248b7260978983e3acc4 (diff)
downloadllvm-a465e35908b65563c7be96a9cc514c38e1bf8b8e.zip
llvm-a465e35908b65563c7be96a9cc514c38e1bf8b8e.tar.gz
llvm-a465e35908b65563c7be96a9cc514c38e1bf8b8e.tar.bz2
[Sema] Remove an unnecessary cast (NFC) (#146985)
Decl is already of FunctionDecl *.
Diffstat (limited to 'clang/lib/Sema/SemaConcept.cpp')
-rw-r--r--clang/lib/Sema/SemaConcept.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Sema/SemaConcept.cpp b/clang/lib/Sema/SemaConcept.cpp
index 1594b44..be9737d 100644
--- a/clang/lib/Sema/SemaConcept.cpp
+++ b/clang/lib/Sema/SemaConcept.cpp
@@ -1138,8 +1138,8 @@ bool Sema::CheckFunctionTemplateConstraints(
}
CXXThisScopeRAII ThisScope(*this, Record, ThisQuals, Record != nullptr);
- LambdaScopeForCallOperatorInstantiationRAII LambdaScope(
- *this, const_cast<FunctionDecl *>(Decl), *MLTAL, Scope);
+ LambdaScopeForCallOperatorInstantiationRAII LambdaScope(*this, Decl, *MLTAL,
+ Scope);
return CheckConstraintSatisfaction(Template, TemplateAC, *MLTAL,
PointOfInstantiation, Satisfaction);