]> Cypherpunks repositories - gostls13.git/commit
cmd/link: fix deferreturn location on wasm
authorKeith Randall <keithr@alum.mit.edu>
Thu, 4 Oct 2018 23:32:21 +0000 (16:32 -0700)
committerKeith Randall <khr@golang.org>
Fri, 5 Oct 2018 03:29:58 +0000 (03:29 +0000)
commit48e22da1d24dc5b038bd83a78553173af5474e76
treea93491bfa3d6c2a7bd44f465ee5c2c028f870bd2
parent1bca6cecc627cd708c6c5440eb14f84a99d5324b
cmd/link: fix deferreturn location on wasm

On wasm, pcln tables are indexed by "resumption point ID" instead of
by pc offset. When finding a deferreturn call, we must find the
associated resumption point ID for the deferreturn call.

Update #27518
Fixes wasm bug introduced in CL 134637.

Change-Id: I3d178a3f5203a06c0180a1aa2309bfb7f3014f0f
Reviewed-on: https://go-review.googlesource.com/c/139898
Reviewed-by: Cherry Zhang <cherryyz@google.com>
src/cmd/link/internal/ld/pcln.go