+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>
{
/* 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))