]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.9] cmd/compile: fix merge rules for panic calls
authorKeith Randall <khr@golang.org>
Mon, 2 Oct 2017 22:47:41 +0000 (15:47 -0700)
committerRuss Cox <rsc@golang.org>
Wed, 25 Oct 2017 20:23:16 +0000 (20:23 +0000)
commitd80889341c7ce6f2cfdd0a9d2e0feb20c4805bbc
tree0fc75f8468ab301eaa07465c076b463bdfc3dfe4
parent87b3a2783973b75357f8844a12aa36abcc479374
[release-branch.go1.9] cmd/compile: fix merge rules for panic calls

Use entire inlining call stack to decide whether two panic calls
can be merged. We used to merge panic calls when only the leaf
line numbers matched, but that leads to places higher up the call
stack being merged incorrectly.

Fixes #22083

Change-Id: Ia41400a80de4b6ecf3e5089abce0c42b65e9b38a
Reviewed-on: https://go-review.googlesource.com/67632
Run-TryBot: Emmanuel Odeke <emm.odeke@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Robert Griesemer <gri@golang.org>
Reviewed-on: https://go-review.googlesource.com/70980
Run-TryBot: Russ Cox <rsc@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
src/cmd/compile/internal/gc/ssa.go
test/fixedbugs/issue22083.go [new file with mode: 0644]