From: Chris Lattner Date: Thu, 26 Jun 2008 06:11:04 +0000 (+0000) Subject: another const correctness bug with declspec. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=65e4af90e6b0ed991525718d20ba5b06e79c9072;p=clang another const correctness bug with declspec. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@52768 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/Parse/DeclSpec.h b/include/clang/Parse/DeclSpec.h index 8f6545e49d..4526c76152 100644 --- a/include/clang/Parse/DeclSpec.h +++ b/include/clang/Parse/DeclSpec.h @@ -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.