summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2018-02-23 21:38:57 +0000
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2018-02-23 21:38:57 +0000
commite65055a558093bd4fc0b1b0024b7814cc187b8e8 (patch)
tree34eaec34d3588e09f9a77abba776266f124dc823
parenta9c682eb66a0e2eb439e6b70e158516796d64278 (diff)
downloadgcc-e65055a558093bd4fc0b1b0024b7814cc187b8e8.tar.gz
compiler: ignore aliases in fieldtrack info
We want to track references to fields in the real struct, not in aliases to the struct. Reviewed-on: https://go-review.googlesource.com/96816 git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@257954 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/go/gofrontend/MERGE2
-rw-r--r--gcc/go/gofrontend/expressions.cc2
2 files changed, 2 insertions, 2 deletions
diff --git a/gcc/go/gofrontend/MERGE b/gcc/go/gofrontend/MERGE
index b708cb7c603..88291d585f9 100644
--- a/gcc/go/gofrontend/MERGE
+++ b/gcc/go/gofrontend/MERGE
@@ -1,4 +1,4 @@
-ed8647cc99652db2d689215c05f31ad038438a7e
+8b3d6091801d485c74a9c92740c69673e39160b0
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/expressions.cc b/gcc/go/gofrontend/expressions.cc
index 9792faaa0e4..10ab5b50db9 100644
--- a/gcc/go/gofrontend/expressions.cc
+++ b/gcc/go/gofrontend/expressions.cc
@@ -11696,7 +11696,7 @@ Field_reference_expression::do_lower(Gogo* gogo, Named_object* function,
Location loc = this->location();
std::string s = "fieldtrack \"";
- Named_type* nt = this->expr_->type()->named_type();
+ Named_type* nt = this->expr_->type()->unalias()->named_type();
if (nt == NULL || nt->named_object()->package() == NULL)
s.append(gogo->pkgpath());
else