diff options
author | John McCall <rjmccall@apple.com> | 2013-02-21 23:42:58 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2013-02-21 23:42:58 +0000 |
commit | 3892d022f36ee5bf3be4a55ea01c08d323ef6235 (patch) | |
tree | e986fee6caaac893853c415643c5238688d5f18c /include/clang/AST/DeclCXX.h | |
parent | df1f94ebfac4578e27ad008522c7b333e977e51b (diff) |
Ignore visibility from enclosing template arguments
for explicit member specializations.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@175827 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/AST/DeclCXX.h')
-rw-r--r-- | include/clang/AST/DeclCXX.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/clang/AST/DeclCXX.h b/include/clang/AST/DeclCXX.h index 1a37bd6a5d..70d8c33608 100644 --- a/include/clang/AST/DeclCXX.h +++ b/include/clang/AST/DeclCXX.h @@ -1253,7 +1253,9 @@ public: /// \brief If this class is an instantiation of a member class of a /// class template specialization, retrieves the member specialization /// information. - MemberSpecializationInfo *getMemberSpecializationInfo() const; + MemberSpecializationInfo *getMemberSpecializationInfo() const { + return TemplateOrInstantiation.dyn_cast<MemberSpecializationInfo *>(); + } /// \brief Specify that this record is an instantiation of the /// member class RD. |