Skip to content

Commit c876d71

Browse files
authored
[clang][NFC] Accept const NamedDecl pointer for getDepthAndIndex (#113857)
1 parent a1d31ca commit c876d71

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/include/clang/Sema/SemaInternal.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ inline InheritableAttr *getDLLAttr(Decl *D) {
5858
}
5959

6060
/// Retrieve the depth and index of a template parameter.
61-
inline std::pair<unsigned, unsigned> getDepthAndIndex(NamedDecl *ND) {
61+
inline std::pair<unsigned, unsigned> getDepthAndIndex(const NamedDecl *ND) {
6262
if (const auto *TTP = dyn_cast<TemplateTypeParmDecl>(ND))
6363
return std::make_pair(TTP->getDepth(), TTP->getIndex());
6464

0 commit comments

Comments
 (0)