diff options
author | Ian Lance Taylor <iant@golang.org> | 2020-12-05 08:09:53 -0800 |
---|---|---|
committer | Ian Lance Taylor <iant@golang.org> | 2020-12-07 09:33:21 -0800 |
commit | e9104775e3beceab247050733da97fbba5341cb7 (patch) | |
tree | fbafcc1297b4d24a461003d52591d0c965f3affe /gcc/go | |
parent | 1cac89da2cb1f2a7c2d93f7f325484c2d1619ca8 (diff) | |
download | gcc-e9104775e3beceab247050733da97fbba5341cb7.zip gcc-e9104775e3beceab247050733da97fbba5341cb7.tar.gz gcc-e9104775e3beceab247050733da97fbba5341cb7.tar.bz2 |
compiler: don't name type descriptor for alias type
The test case is https://golang.org/cl/275632.
Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/275652
Diffstat (limited to 'gcc/go')
-rw-r--r-- | gcc/go/gofrontend/MERGE | 2 | ||||
-rw-r--r-- | gcc/go/gofrontend/names.cc | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/gcc/go/gofrontend/MERGE b/gcc/go/gofrontend/MERGE index 019aafd..02083ed 100644 --- a/gcc/go/gofrontend/MERGE +++ b/gcc/go/gofrontend/MERGE @@ -1,4 +1,4 @@ -342e5f0b349553a69d7c99a18162ae2a1e6e5775 +2184750d74d37580486e90df1284c07fdee91670 The first line of this file holds the git revision number of the last merge done from the gofrontend repository. diff --git a/gcc/go/gofrontend/names.cc b/gcc/go/gofrontend/names.cc index 0097417..8e73e5e 100644 --- a/gcc/go/gofrontend/names.cc +++ b/gcc/go/gofrontend/names.cc @@ -1017,7 +1017,7 @@ Gogo::type_descriptor_backend_name(const Type* type, Named_type* nt, bool is_pointer = false; if (nt == NULL && type->points_to() != NULL) { - nt = type->points_to()->named_type(); + nt = type->points_to()->unalias()->named_type(); is_pointer = true; } |