forked from OSchip/llvm-project
Add a const version of a method, to be consistent with other methods
of the same type. I think this was just an oversight before. Reviewed by chandlerc. Submitted as an "obvious" fix. llvm-svn: 107737
This commit is contained in:
parent
1308bb2791
commit
43adffd1d4
|
@ -1421,6 +1421,10 @@ public:
|
|||
|
||||
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,
|
||||
|
|
Loading…
Reference in New Issue