aboutsummaryrefslogtreecommitdiff
path: root/gcc/go/gofrontend/names.cc
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2020-12-05 08:09:53 -0800
committerIan Lance Taylor <iant@golang.org>2020-12-07 09:33:21 -0800
commite9104775e3beceab247050733da97fbba5341cb7 (patch)
treefbafcc1297b4d24a461003d52591d0c965f3affe /gcc/go/gofrontend/names.cc
parent1cac89da2cb1f2a7c2d93f7f325484c2d1619ca8 (diff)
downloadgcc-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/gofrontend/names.cc')
-rw-r--r--gcc/go/gofrontend/names.cc2
1 files changed, 1 insertions, 1 deletions
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;
}