Commit 511b60ff by Jason Merrill

fix thinko in last change

From-SVN: r28598
parent 58eb6e7c
...@@ -3616,6 +3616,7 @@ maybe_get_template_decl_from_type_decl (decl) ...@@ -3616,6 +3616,7 @@ maybe_get_template_decl_from_type_decl (decl)
return (decl != NULL_TREE return (decl != NULL_TREE
&& TREE_CODE (decl) == TYPE_DECL && TREE_CODE (decl) == TYPE_DECL
&& DECL_ARTIFICIAL (decl) && DECL_ARTIFICIAL (decl)
&& CLASS_TYPE_P (TREE_TYPE (decl))
&& CLASSTYPE_TEMPLATE_INFO (TREE_TYPE (decl))) && CLASSTYPE_TEMPLATE_INFO (TREE_TYPE (decl)))
? CLASSTYPE_TI_TEMPLATE (TREE_TYPE (decl)) : decl; ? CLASSTYPE_TI_TEMPLATE (TREE_TYPE (decl)) : decl;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment