]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: fix merge rules for panic calls
authorKeith Randall <khr@golang.org>
Mon, 2 Oct 2017 22:47:41 +0000 (15:47 -0700)
committerDaniel Martí <mvdan@mvdan.cc>
Tue, 3 Oct 2017 09:27:37 +0000 (09:27 +0000)
commit41eabc0fc7cc9bc40a66dd0edd0ae676c8965ec9
tree228f819695cc5c07e889e342d648e9dada760169
parentd851f10b8170c8fdd48a2016fbdd84f9ea71c21a
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>
src/cmd/compile/internal/gc/ssa.go
test/fixedbugs/issue22083.go [new file with mode: 0644]