commit | 2184750d74d37580486e90df1284c07fdee91670 | [log] [tgz] |
---|---|---|
author | Ian Lance Taylor <iant@golang.org> | Sat Dec 05 08:09:53 2020 -0800 |
committer | Ian Lance Taylor <iant@golang.org> | Mon Dec 07 17:31:47 2020 +0000 |
tree | b39299965224fc34c13640ba3e13443349e8ce58 | |
parent | 342e5f0b349553a69d7c99a18162ae2a1e6e5775 [diff] |
compiler: don't name type descriptor for alias type The test case is https://golang.org/cl/275632. Change-Id: Ibbbdc84f0e2151fb938de8fea7021be8cd26c703 Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/275652 Trust: Ian Lance Taylor <iant@golang.org> Reviewed-by: Cherry Zhang <cherryyz@google.com>
diff --git a/go/names.cc b/go/names.cc index 0097417..8e73e5e 100644 --- a/go/names.cc +++ b/go/names.cc
@@ -1017,7 +1017,7 @@ 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; }