diff options
Diffstat (limited to 'include/clang/AST/DeclBase.h')
-rw-r--r-- | include/clang/AST/DeclBase.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/clang/AST/DeclBase.h b/include/clang/AST/DeclBase.h index 1407dadd16..2ce43cb378 100644 --- a/include/clang/AST/DeclBase.h +++ b/include/clang/AST/DeclBase.h @@ -477,7 +477,7 @@ public: bool isDefinedOutsideFunctionOrMethod() const; /// \brief Retrieves the "canonical" declaration of the given declaration. - virtual Decl *getCanonicalDecl() { return this; } + Decl *getCanonicalDecl(); const Decl *getCanonicalDecl() const { return const_cast<Decl*>(this)->getCanonicalDecl(); } |