* decl2.c (determine_visibility): Use get_template_info.

From-SVN: r222133
This commit is contained in:
Jason Merrill 2015-04-15 17:17:15 -04:00 committed by Jason Merrill
parent 5ce3039eb1
commit bf5730d773
2 changed files with 5 additions and 3 deletions

View File

@ -1,3 +1,7 @@
2015-04-15 Jason Merrill <jason@redhat.com>
* decl2.c (determine_visibility): Use get_template_info.
2015-04-15 Jason Merrill <jason@redhat.com>
Marek Polacek <polacek@redhat.com>

View File

@ -2386,9 +2386,7 @@ determine_visibility (tree decl)
{
/* If the specialization doesn't specify visibility, use the
visibility from the template. */
tree tinfo = (TREE_CODE (decl) == TYPE_DECL
? TYPE_TEMPLATE_INFO (TREE_TYPE (decl))
: DECL_TEMPLATE_INFO (decl));
tree tinfo = get_template_info (decl);
tree args = TI_ARGS (tinfo);
tree attribs = (TREE_CODE (decl) == TYPE_DECL
? TYPE_ATTRIBUTES (TREE_TYPE (decl))