diff options
| author | Chris Lattner <sabre@nondot.org> | 2008-06-26 06:07:52 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2008-06-26 06:07:52 +0000 |
| commit | c8846a19d4e68ab3eee4f5330e1022c1fa33ab8d (patch) | |
| tree | 7df903d32fde16503687694f668f12d3acd01990 | |
| parent | d4741e803f885a836688d72a9c95248d284e4c41 (diff) | |
| download | bcm5719-llvm-c8846a19d4e68ab3eee4f5330e1022c1fa33ab8d.tar.gz bcm5719-llvm-c8846a19d4e68ab3eee4f5330e1022c1fa33ab8d.zip | |
fix const correctness of accessor.
llvm-svn: 52767
| -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; } |

