compiler: pass correct 'function' flag to circular_pointer_type
authorIan Lance Taylor <ian@gcc.gnu.org>
Tue, 18 Jul 2017 22:31:00 +0000 (22:31 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Tue, 18 Jul 2017 22:31:00 +0000 (22:31 +0000)
commitab86687fee4024af20d852e26fbb743de05d0efe
tree1185231f100fa749f63c64473ba49aadec9a9a88
parenteb80664a39e8bb876bfc6b9ef7ad8578e3c76fa4
compiler: pass correct 'function' flag to circular_pointer_type

    The code in Named_type::do_get_backend was not passing the correct
    flag value for circular function types to Backend::circular_pointer_type
    (it was always setting this flag to false). Pass a true value if the
    type being converted is a function type.

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

From-SVN: r250325
gcc/go/gofrontend/MERGE
gcc/go/gofrontend/types.cc