compiler: containing small bfunction mixup in Gogo::write_globals
authorIan Lance Taylor <ian@gcc.gnu.org>
Tue, 13 Jun 2017 14:26:07 +0000 (14:26 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Tue, 13 Jun 2017 14:26:07 +0000 (14:26 +0000)
commit78a88fb63f23fd9f3d9bf84e31b2f7acc67f25d7
tree8b08e05ea8ffe81a60a8eefd51a7351fd23b8b4e
parent45b2222a13eae86582966de6b8203ca75660c1fe
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.

    Reviewed-on: https://go-review.googlesource.com/45510

From-SVN: r249159
gcc/go/gofrontend/MERGE
gcc/go/gofrontend/gogo.cc