]> granicus.if.org Git - clang/commitdiff
More const-ness goodness.
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Sun, 12 Oct 2008 18:45:56 +0000 (18:45 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Sun, 12 Oct 2008 18:45:56 +0000 (18:45 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@57420 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/AST/DeclBase.h

index ac6e19610bc5aebdb1b8aa455d5cb4bc351be930..f278b71fdfac00151f30d858bd51ffec0fc347e2 100644 (file)
@@ -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) {