aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/clang/AST/DeclBase.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/clang/AST/DeclBase.h b/include/clang/AST/DeclBase.h
index ac6e19610b..f278b71fdf 100644
--- a/include/clang/AST/DeclBase.h
+++ b/include/clang/AST/DeclBase.h
@@ -316,7 +316,8 @@ public:
}
}
- ScopedDecl *getDeclChain() const { return DeclChain; }
+ const ScopedDecl *getDeclChain() const { return DeclChain; }
+ ScopedDecl *getDeclChain() { return DeclChain; }
void setDeclChain(ScopedDecl *D) { DeclChain = D; }
static bool classof(const Decl *D) {