Author: Kazu Hirata Date: 2025-07-08T12:47:03-07:00 New Revision: d0c1f148ced2a599dc36046f3bd46af64e3f5ed0
URL: https://github.com/llvm/llvm-project/commit/d0c1f148ced2a599dc36046f3bd46af64e3f5ed0 DIFF: https://github.com/llvm/llvm-project/commit/d0c1f148ced2a599dc36046f3bd46af64e3f5ed0.diff LOG: [Sema] Remove an unnecessary cast (NFC) (#147546) D is already of CXXMethodDecl *. Added: Modified: clang/lib/Sema/SemaTemplateInstantiateDecl.cpp Removed: ################################################################################ diff --git a/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp b/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp index a25bfd1c48dee..c6633cbe51cef 100644 --- a/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp +++ b/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp @@ -3029,7 +3029,7 @@ Decl *TemplateDeclInstantiator::VisitCXXMethodDecl( LocalInstantiationScope Scope(SemaRef, MergeWithParentScope); Sema::LambdaScopeForCallOperatorInstantiationRAII LambdaScope( - SemaRef, const_cast<CXXMethodDecl *>(D), TemplateArgs, Scope); + SemaRef, D, TemplateArgs, Scope); // Instantiate enclosing template arguments for friends. SmallVector<TemplateParameterList *, 4> TempParamLists; _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits