]> Cypherpunks repositories - gostls13.git/commit
[dev.regabi] cmd/compile: scan body of closure in tooHairy to check for disallowed...
authorDan Scales <danscales@google.com>
Fri, 22 Jan 2021 22:32:06 +0000 (14:32 -0800)
committerDan Scales <danscales@google.com>
Sat, 23 Jan 2021 00:30:58 +0000 (00:30 +0000)
commit51e1819a8d2ecb6ed292ca363cbb8edfea4aea65
tree3880b4fdd77a5c68f953cd560de4d820c98933e1
parent7e0a81d2806b073c6455f73b10fbf2c811703f46
[dev.regabi] cmd/compile: scan body of closure in tooHairy to check for disallowed nodes

Several of the bugs in #43818 are because we were not scanning the body
of an possibly inlined closure in tooHairy(). I think this scanning got
lost in the rebase past some of the ir changes. This fixes the issue
related to the SELRECV2 and the bug reported from cuonglm. There is at
least one other bug related to escape analysis which I'll fix in another
change.

Change-Id: I8f38cd12a287881155403bbabbc540ed5fc2248e
Reviewed-on: https://go-review.googlesource.com/c/go/+/285676
Trust: Dan Scales <danscales@google.com>
Run-TryBot: Dan Scales <danscales@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
src/cmd/compile/internal/inline/inl.go