compiler: generalize cleanup of unresolved placeholder pointer types
authorIan Lance Taylor <ian@gcc.gnu.org>
Mon, 26 Aug 2019 19:55:41 +0000 (19:55 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Mon, 26 Aug 2019 19:55:41 +0000 (19:55 +0000)
commit4d67cae5e6671aaa433b6d6a96c9da47cfd71b45
tree28860a43c67fcc22cbd8f8e8a9aadc03d930306b
parent0e883151165b2039469cb2fdcf33c7f8f59782c0
compiler: generalize cleanup of unresolved placeholder pointer types

    This change extends the work in https://golang.org/cl/51131 to include
    placeholder pointer types created for Go function types, which can
    also be left dangling/unresolved in some instances. This fixes an
    assert in Llvm_backend::materializeComposite.

    Test case can be found in https://golang.org/cl/191743.

    Updates golang/go#33020.

    Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/191744

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