of the same type. I think this was just an oversight before.
Reviewed by chandlerc. Submitted as an "obvious" fix.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@107737
91177308-0d34-0410-b5e6-
96231b3b80d8
virtual ClassTemplateDecl *getCanonicalDecl();
+ const ClassTemplateDecl *getCanonicalDecl() const {
+ return const_cast<ClassTemplateDecl*>(this)->getCanonicalDecl();
+ }
+
/// Create a class template node.
static ClassTemplateDecl *Create(ASTContext &C, DeclContext *DC,
SourceLocation L,