compiler: don't use pkgpath for fieldtrack of unexported field

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

From-SVN: r274803
This commit is contained in:
Ian Lance Taylor 2019-08-21 17:19:52 +00:00
parent 7f8c0c0504
commit eda684e6a7
2 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
7da359f4659fffff051c05ff442037cfa61febd5 82d27f0f140f33406cf59c0fb262f6dba3077f8e
The first line of this file holds the git revision number of the last The first line of this file holds the git revision number of the last
merge done from the gofrontend repository. merge done from the gofrontend repository.

View File

@ -13795,7 +13795,7 @@ Field_reference_expression::do_lower(Gogo* gogo, Named_object* function,
if (nt != NULL) if (nt != NULL)
s.append(Gogo::unpack_hidden_name(nt->name())); s.append(Gogo::unpack_hidden_name(nt->name()));
s.push_back('.'); s.push_back('.');
s.append(field->field_name()); s.append(Gogo::unpack_hidden_name(field->field_name()));
s.push_back('"'); s.push_back('"');
// We can't use a string here, because internally a string holds a // We can't use a string here, because internally a string holds a