]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: fix ICE from go/defer call to variadic function
authorMatthew Dempsky <mdempsky@google.com>
Fri, 19 Apr 2019 19:20:56 +0000 (12:20 -0700)
committerMatthew Dempsky <mdempsky@google.com>
Fri, 19 Apr 2019 20:45:14 +0000 (20:45 +0000)
commit9f9e17a82fd7afa622424f51e458bb383cb952ce
treee010ab49233641008ed5dbe4e24f70e4246b0a5d
parent376ce8c88033eede19d6295f9a79263f73c0fddb
cmd/compile: fix ICE from go/defer call to variadic function

The special case logic for go/defer arguments in Escape.call was
scattered around a bit and was somewhat inconsistently handled across
different types of function calls and parameters. This CL pulls the
logic out into a separate callStmt method that's used uniformly for
all kinds of function calls and arguments.

Fixes #31573.

Change-Id: Icdcdf611754dc3fcf1af7cb52879fb4b73a7a31f
Reviewed-on: https://go-review.googlesource.com/c/go/+/173019
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
src/cmd/compile/internal/gc/escape.go
test/fixedbugs/issue31573.go [new file with mode: 0644]