summaryrefslogtreecommitdiffstats
path: root/clang
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-06-26 06:07:52 +0000
committerChris Lattner <sabre@nondot.org>2008-06-26 06:07:52 +0000
commitc8846a19d4e68ab3eee4f5330e1022c1fa33ab8d (patch)
tree7df903d32fde16503687694f668f12d3acd01990 /clang
parentd4741e803f885a836688d72a9c95248d284e4c41 (diff)
downloadbcm5719-llvm-c8846a19d4e68ab3eee4f5330e1022c1fa33ab8d.tar.gz
bcm5719-llvm-c8846a19d4e68ab3eee4f5330e1022c1fa33ab8d.zip
fix const correctness of accessor.
llvm-svn: 52767
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 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; }
OpenPOWER on IntegriCloud