diff options
author | mmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-07-02 18:44:52 +0000 |
---|---|---|
committer | mmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-07-02 18:44:52 +0000 |
commit | f31c4737ae2d5cb62009e6badb1fd8f4b51c04f7 (patch) | |
tree | 5502f4b051491fdbff87c3739b230c608f7b027a /gcc/cp/mangle.c | |
parent | 99e5c5897746e5853fa959176ac7269664125041 (diff) | |
download | gcc-f31c4737ae2d5cb62009e6badb1fd8f4b51c04f7.tar.gz |
* mangle.c (canonicalize_for_substitution): Return the canonical
variant of a type.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@34834 138bc75d-0d04-0410-961f-82ee72b054a4
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 594e25c5a71..23e1eb9b8ef 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; } |