]> Cypherpunks repositories - gostls13.git/commit
cmd/compile/internal/riscv64: correct ssa.BlockRetJmp
authorJoel Sing <joel@sing.id.au>
Sun, 1 Mar 2020 17:26:21 +0000 (04:26 +1100)
committerJoel Sing <joel@sing.id.au>
Tue, 3 Mar 2020 07:33:49 +0000 (07:33 +0000)
commited91661745790f673f4adf212d0ca499f0bd5ee4
treee12783eca1e68d6f97da2dcdea72f4d23b45f523
parent5b15941c61f478b8ed08b76a27186527ba73d273
cmd/compile/internal/riscv64: correct ssa.BlockRetJmp

The obj.Prog needs to be an obj.ARET rather than an obj.AJMP, otherwise the
epilogue does not get correctly produced.

Change-Id: Ie1262f2028d3b51720eeb0364a627fbde8b14df9
Reviewed-on: https://go-review.googlesource.com/c/go/+/221683
Reviewed-by: Cherry Zhang <cherryyz@google.com>
Run-TryBot: Cherry Zhang <cherryyz@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/cmd/compile/internal/riscv64/ssa.go