summaryrefslogtreecommitdiffstats
path: root/clang
diff options
context:
space:
mode:
authorYaron Keren <yaron.keren@gmail.com>2015-10-02 16:40:48 +0000
committerYaron Keren <yaron.keren@gmail.com>2015-10-02 16:40:48 +0000
commitad3f6686ab2e74b81f73bf230db3e0b072582c50 (patch)
tree538b45c1cb72216cfe12ec3baac579785e17fe5f /clang
parentafe0670863deeeb31f5b9c809c8b6fc44aea30c6 (diff)
downloadbcm5719-llvm-ad3f6686ab2e74b81f73bf230db3e0b072582c50.tar.gz
bcm5719-llvm-ad3f6686ab2e74b81f73bf230db3e0b072582c50.zip
constify ClassTemplatePartialSpecializationDecl::getInstantiatedFromMember and VarTemplatePartialSpecializationDecl::getInstantiatedFromMember.
llvm-svn: 249152
Diffstat (limited to 'clang')
-rw-r--r--clang/include/clang/AST/DeclTemplate.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/clang/include/clang/AST/DeclTemplate.h b/clang/include/clang/AST/DeclTemplate.h
index 629ad9bbc2f..6df1e722e7b 100644
--- a/clang/include/clang/AST/DeclTemplate.h
+++ b/clang/include/clang/AST/DeclTemplate.h
@@ -1853,8 +1853,8 @@ public:
/// template partial specialization \c Outer<T>::Inner<U*>. Given
/// \c Outer<float>::Inner<U*>, this function would return
/// \c Outer<T>::Inner<U*>.
- ClassTemplatePartialSpecializationDecl *getInstantiatedFromMember() {
- ClassTemplatePartialSpecializationDecl *First =
+ ClassTemplatePartialSpecializationDecl *getInstantiatedFromMember() const {
+ const ClassTemplatePartialSpecializationDecl *First =
cast<ClassTemplatePartialSpecializationDecl>(getFirstDecl());
return First->InstantiatedFromMember.getPointer();
}
@@ -2702,8 +2702,8 @@ public:
/// variable template partial specialization \c Outer<T>::Inner<U*>. Given
/// \c Outer<float>::Inner<U*>, this function would return
/// \c Outer<T>::Inner<U*>.
- VarTemplatePartialSpecializationDecl *getInstantiatedFromMember() {
- VarTemplatePartialSpecializationDecl *First =
+ VarTemplatePartialSpecializationDecl *getInstantiatedFromMember() const {
+ const VarTemplatePartialSpecializationDecl *First =
cast<VarTemplatePartialSpecializationDecl>(getFirstDecl());
return First->InstantiatedFromMember.getPointer();
}
OpenPOWER on IntegriCloud