fix thinko in last change

From-SVN: r28598
This commit is contained in:
Jason Merrill 1999-08-08 14:11:15 -04:00
parent 58eb6e7cef
commit 511b60ffc0
1 changed files with 1 additions and 0 deletions

View File

@ -3616,6 +3616,7 @@ maybe_get_template_decl_from_type_decl (decl)
return (decl != NULL_TREE
&& TREE_CODE (decl) == TYPE_DECL
&& DECL_ARTIFICIAL (decl)
&& CLASS_TYPE_P (TREE_TYPE (decl))
&& CLASSTYPE_TEMPLATE_INFO (TREE_TYPE (decl)))
? CLASSTYPE_TI_TEMPLATE (TREE_TYPE (decl)) : decl;
}