diff options
author | Mark Mitchell <mark@codesourcery.com> | 2000-07-02 18:44:52 +0000 |
---|---|---|
committer | Mark Mitchell <mmitchel@gcc.gnu.org> | 2000-07-02 18:44:52 +0000 |
commit | bc6e9a0a86df7b317d6c3567c5434bc42ac63b63 (patch) | |
tree | 5502f4b051491fdbff87c3739b230c608f7b027a /gcc/cp/mangle.c | |
parent | 68bcd3163af2a5d1256d8c17e383d8edb0d13904 (diff) | |
download | gcc-bc6e9a0a86df7b317d6c3567c5434bc42ac63b63.zip gcc-bc6e9a0a86df7b317d6c3567c5434bc42ac63b63.tar.gz gcc-bc6e9a0a86df7b317d6c3567c5434bc42ac63b63.tar.bz2 |
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
Diffstat (limited to 'gcc/cp/mangle.c')
-rw-r--r-- | gcc/cp/mangle.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/cp/mangle.c b/gcc/cp/mangle.c index 594e25c..23e1eb9 100644 --- a/gcc/cp/mangle.c +++ b/gcc/cp/mangle.c @@ -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; } |