summaryrefslogtreecommitdiffstats
path: root/clang
diff options
context:
space:
mode:
Diffstat (limited to 'clang')
-rw-r--r--clang/include/clang/Parse/DeclSpec.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/include/clang/Parse/DeclSpec.h b/clang/include/clang/Parse/DeclSpec.h
index 8f6545e49d3..4526c76152c 100644
--- a/clang/include/clang/Parse/DeclSpec.h
+++ b/clang/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.
OpenPOWER on IntegriCloud