]> granicus.if.org Git - clang/commitdiff
fix const correctness of accessor.
authorChris Lattner <sabre@nondot.org>
Thu, 26 Jun 2008 06:07:52 +0000 (06:07 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 26 Jun 2008 06:07:52 +0000 (06:07 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@52767 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Parse/DeclSpec.h

index 369aca480de20bc2c26d6b8158cf6749c32faab5..8f6545e49d3fa79b33a21bd7015cd1ff18503eba 100644 (file)
@@ -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; }