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
This commit is contained in:
parent
68bcd3163a
commit
bc6e9a0a86
2 changed files with 5 additions and 0 deletions
|
@ -1,5 +1,8 @@
|
|||
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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue