Author: Kazu Hirata
Date: 2025-07-04T07:56:28-07:00
New Revision: a465e35908b65563c7be96a9cc514c38e1bf8b8e

URL: 
https://github.com/llvm/llvm-project/commit/a465e35908b65563c7be96a9cc514c38e1bf8b8e
DIFF: 
https://github.com/llvm/llvm-project/commit/a465e35908b65563c7be96a9cc514c38e1bf8b8e.diff

LOG: [Sema] Remove an unnecessary cast (NFC) (#146985)

Decl is already of FunctionDecl *.

Added: 
    

Modified: 
    clang/lib/Sema/SemaConcept.cpp

Removed: 
    


################################################################################
diff  --git a/clang/lib/Sema/SemaConcept.cpp b/clang/lib/Sema/SemaConcept.cpp
index 1594b4423e4d2..be9737d9e7c1a 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);


        
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to