summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/TemplateBase.cpp
diff options
context:
space:
mode:
authorJay Foad <jay.foad@gmail.com>2011-01-12 09:06:06 +0000
committerJay Foad <jay.foad@gmail.com>2011-01-12 09:06:06 +0000
commit39c7980772fd980ff06384453d0df1c25ed4fe7e (patch)
tree03b3de9c2e0547301263cf88e9a498c7bbb68ddc /clang/lib/AST/TemplateBase.cpp
parentebbeb792345cf5ef490f2a8d75d1e271082ef457 (diff)
downloadbcm5719-llvm-39c7980772fd980ff06384453d0df1c25ed4fe7e.tar.gz
bcm5719-llvm-39c7980772fd980ff06384453d0df1c25ed4fe7e.zip
PR3558: mark "logically const" accessor methods in ASTContext as const,
and mark the fields they use as mutable. This allows us to remove a few const_casts. llvm-svn: 123314
Diffstat (limited to 'clang/lib/AST/TemplateBase.cpp')
-rw-r--r--clang/lib/AST/TemplateBase.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/AST/TemplateBase.cpp b/clang/lib/AST/TemplateBase.cpp
index 6d6fee66254..42a936c5009 100644
--- a/clang/lib/AST/TemplateBase.cpp
+++ b/clang/lib/AST/TemplateBase.cpp
@@ -136,7 +136,7 @@ bool TemplateArgument::containsUnexpandedParameterPack() const {
}
void TemplateArgument::Profile(llvm::FoldingSetNodeID &ID,
- ASTContext &Context) const {
+ const ASTContext &Context) const {
ID.AddInteger(Kind);
switch (Kind) {
case Null:
OpenPOWER on IntegriCloud