compiler: unalias receiver type in export data
authorIan Lance Taylor <iant@golang.org>
Mon, 15 Feb 2021 02:59:07 +0000 (18:59 -0800)
committerIan Lance Taylor <iant@golang.org>
Tue, 16 Feb 2021 21:01:00 +0000 (13:01 -0800)
Test case is https://golang.org/cl/292009.

Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/291991

gcc/go/gofrontend/MERGE
gcc/go/gofrontend/gogo.cc

index 3175ba0e005e65b3499a540c6099532847c110af..eed9ce01905a6e635be3c00b7215d47a9f040e64 100644 (file)
@@ -1,4 +1,4 @@
-a5d7c4225fbbd06b97db6fa424cc0cb5191082d4
+c406de0594782b1d6782a732a50f5b76387852dc
 
 The first line of this file holds the git revision number of the last
 merge done from the gofrontend repository.
index 62b06be827b7f56865dc1f769039ec26c3bd7f60..38a2f6f8f9e59110a652385e3f0f7e4825e530cc 100644 (file)
@@ -5898,7 +5898,7 @@ Function::export_func_with_type(Export* exp, const Named_object* no,
       exp->write_name(receiver->name());
       exp->write_escape(receiver->note());
       exp->write_c_string(" ");
-      exp->write_type(receiver->type());
+      exp->write_type(receiver->type()->unalias());
       exp->write_c_string(") ");
     }