From: Chris Lattner Date: Thu, 26 Jun 2008 06:07:52 +0000 (+0000) Subject: fix const correctness of accessor. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e6bec8a6e99bcc9894b3a8bc54434eca4cbe6a6e;p=clang fix const correctness of accessor. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@52767 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/Parse/DeclSpec.h b/include/clang/Parse/DeclSpec.h index 369aca480d..8f6545e49d 100644 --- a/include/clang/Parse/DeclSpec.h +++ b/include/clang/Parse/DeclSpec.h @@ -661,7 +661,8 @@ public: assert((AttrList == 0) && "Declarator already has an attribute list"); AttrList = alist; } - AttributeList *getAttributes() const { return AttrList; } + const AttributeList *getAttributes() const { return AttrList; } + AttributeList *getAttributes() { return AttrList; } void setInvalidType(bool flag) { InvalidType = flag; } bool getInvalidType() const { return InvalidType; }