diff options
| -rw-r--r-- | clang/include/clang/Parse/DeclSpec.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/include/clang/Parse/DeclSpec.h b/clang/include/clang/Parse/DeclSpec.h index 369aca480de..8f6545e49d3 100644 --- a/clang/include/clang/Parse/DeclSpec.h +++ b/clang/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; } |

