compiler: containing small bfunction mixup in Gogo::write_globals

Fix buglet in Gogo::write_globals-- in a couple of places the
wrong Bfunction was being used for the containing (not target)
function when creating calls for init functions.

Change-Id: I45176d593b7672b4bf4a5e96730c0b90bf2e980e
Reviewed-on: https://go-review.googlesource.com/45510
Reviewed-by: Cherry Zhang <cherryyz@google.com>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
1 file changed