]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: fix recursive inimport handling
authorMatthew Dempsky <mdempsky@google.com>
Thu, 21 Jun 2018 22:35:32 +0000 (15:35 -0700)
committerMatthew Dempsky <mdempsky@google.com>
Thu, 21 Jun 2018 23:57:55 +0000 (23:57 +0000)
commit011ea87921cb37dc8e4147d99c22234f875d2651
treea5d3cb7cd83dc166a56817d3b9ea8297f0727d66
parent6c8100270cd1254fef21b48fa3f4e77fc9aab69d
cmd/compile: fix recursive inimport handling

expandDecl can be called recursively, so it's not an appropriate place
to clean inimport. Instead, move this up to resolve, along with an
appropriate recursion check.

Passes toolstash-check.

Change-Id: I138d37b057dcc6525c780b4b3fbaa5e97f99655b
Reviewed-on: https://go-review.googlesource.com/120455
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Robert Griesemer <gri@golang.org>
src/cmd/compile/internal/gc/iimport.go
src/cmd/compile/internal/gc/typecheck.go