forked from OSchip/llvm-project
Add a missing getMostRecentDecl to ClassTemplateDecl.
llvm-svn: 193040
This commit is contained in:
parent
7b56f6c3c2
commit
ed452a0629
|
@ -1900,6 +1900,14 @@ public:
|
|||
RedeclarableTemplateDecl::getPreviousDecl());
|
||||
}
|
||||
|
||||
ClassTemplateDecl *getMostRecentDecl() {
|
||||
return cast<ClassTemplateDecl>(
|
||||
RedeclarableTemplateDecl::getMostRecentDecl());
|
||||
}
|
||||
const ClassTemplateDecl *getMostRecentDecl() const {
|
||||
return const_cast<ClassTemplateDecl*>(this)->getMostRecentDecl();
|
||||
}
|
||||
|
||||
ClassTemplateDecl *getInstantiatedFromMemberTemplate() {
|
||||
return cast_or_null<ClassTemplateDecl>(
|
||||
RedeclarableTemplateDecl::getInstantiatedFromMemberTemplate());
|
||||
|
|
Loading…
Reference in New Issue