Skip to content

Commit d0c1f14

Browse files
[Sema] Remove an unnecessary cast (NFC) (#147546)
D is already of CXXMethodDecl *.
1 parent 6f291cb commit d0c1f14

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/Sema/SemaTemplateInstantiateDecl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3029,7 +3029,7 @@ Decl *TemplateDeclInstantiator::VisitCXXMethodDecl(
30293029
LocalInstantiationScope Scope(SemaRef, MergeWithParentScope);
30303030

30313031
Sema::LambdaScopeForCallOperatorInstantiationRAII LambdaScope(
3032-
SemaRef, const_cast<CXXMethodDecl *>(D), TemplateArgs, Scope);
3032+
SemaRef, D, TemplateArgs, Scope);
30333033

30343034
// Instantiate enclosing template arguments for friends.
30353035
SmallVector<TemplateParameterList *, 4> TempParamLists;

0 commit comments

Comments
 (0)