mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-23 00:41:25 +08:00
* decl2.c (determine_visibility): Use get_template_info.
From-SVN: r222133
This commit is contained in:
parent
5ce3039eb1
commit
bf5730d773
@ -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>
|
||||
|
||||
|
@ -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))
|
||||
|
Loading…
x
Reference in New Issue
Block a user