Commit bc6e9a0a by Mark Mitchell Committed by Mark Mitchell

mangle.c (canonicalize_for_substitution): Return the canonical variant of a type.

	* mangle.c (canonicalize_for_substitution): Return the canonical
	variant of a type.

From-SVN: r34834
parent 68bcd316
2000-07-02 Mark Mitchell <mark@codesourcery.com>
* mangle.c (canonicalize_for_substitution): Return the canonical
variant of a type.
* decl.c (duplicate_decls): Preserve DECL_ORIGINAL_TYPE for a
TYPE_DECL.
* typeck.c (commonparms): Remove obstack manipulations.
......
......@@ -274,6 +274,8 @@ canonicalize_for_substitution (node)
/* For a TYPE_DECL, use the type instead. */
if (TREE_CODE (node) == TYPE_DECL)
node = TREE_TYPE (node);
if (TYPE_P (node))
node = canonical_type_variant (node);
return node;
}
......
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