compiler: check error expression in Array_type::get_backend_length
authorIan Lance Taylor <ian@gcc.gnu.org>
Fri, 15 Sep 2017 21:07:54 +0000 (21:07 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Fri, 15 Sep 2017 21:07:54 +0000 (21:07 +0000)
commit41dfa93fb8d0cfd3a64ba3e6eba9fbbe1d66090c
tree3241c6cfc5f9b0874103fbef0c9668883028a528
parentefc79e1e860fd4fa7df5ba68c14cf59723205274
compiler: check error expression in Array_type::get_backend_length

    Otherwise, a zero length is created in the backend and the
    backend doesn't know there is an error.

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

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