diff options
| author | Dan Scales <danscales@google.com> | 2021-03-01 09:05:58 -0800 |
|---|---|---|
| committer | Dan Scales <danscales@google.com> | 2021-03-01 20:59:43 +0000 |
| commit | b98ce3b606b2bb620c9c62482cd73f068157a32c (patch) | |
| tree | d064283ac920038f0f16f213294a2282bc85d2eb /src/debug | |
| parent | 97bdac03aee805cfa54e7762037a568d85339970 (diff) | |
| download | go-b98ce3b606b2bb620c9c62482cd73f068157a32c.tar.xz | |
cmd/compile: import empty closure function correctly
On import, make sure that an empty closure is represented as a single
empty block statement. Otherwise, the closure is dropped. Block
statements are not exported explicitly, so must recreate on import.
Fixes #44330
Change-Id: I061598f0f859dd71d2d0cbd10c77cdd81525d1f2
Reviewed-on: https://go-review.googlesource.com/c/go/+/297569
Run-TryBot: Dan Scales <danscales@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
Trust: Dan Scales <danscales@google.com>
Diffstat (limited to 'src/debug')
0 files changed, 0 insertions, 0 deletions
