diff options
author | Jay Foad <jay.foad@gmail.com> | 2011-01-12 09:06:06 +0000 |
---|---|---|
committer | Jay Foad <jay.foad@gmail.com> | 2011-01-12 09:06:06 +0000 |
commit | 39c7980772fd980ff06384453d0df1c25ed4fe7e (patch) | |
tree | 03b3de9c2e0547301263cf88e9a498c7bbb68ddc /clang/lib/AST/TemplateBase.cpp | |
parent | ebbeb792345cf5ef490f2a8d75d1e271082ef457 (diff) | |
download | bcm5719-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.cpp | 2 |
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: |