]> granicus.if.org Git - clang/commitdiff
another const correctness bug with declspec.
authorChris Lattner <sabre@nondot.org>
Thu, 26 Jun 2008 06:11:04 +0000 (06:11 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 26 Jun 2008 06:11:04 +0000 (06:11 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@52768 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Parse/DeclSpec.h

index 8f6545e49d3fa79b33a21bd7015cd1ff18503eba..4526c76152cb6d427c57bbc35cb2a4f8c935bb26 100644 (file)
@@ -265,7 +265,8 @@ public:
     AttrList = alist;
   }
   void SetAttributes(AttributeList *AL) { AttrList = AL; }
-  AttributeList *getAttributes() const { return AttrList; }
+  const AttributeList *getAttributes() const { return AttrList; }
+  AttributeList *getAttributes() { return AttrList; }
   
   /// TakeAttributes - Return the current attribute list and remove them from
   /// the DeclSpec so that it doesn't own them.