compiler: remove unneeded zero-length slice value init
authorIan Lance Taylor <ian@gcc.gnu.org>
Thu, 15 Dec 2016 02:14:40 +0000 (02:14 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Thu, 15 Dec 2016 02:14:40 +0000 (02:14 +0000)
commitedda2869d074f103dcc035e82282e9ea07421222
tree48e0c711f32ef964a0055ae9755ffc0fbfb02744
parentecfc21ff34ddc6f8aa517251fb51494c68ff741f
compiler: remove unneeded zero-length slice value init

    Prune away a bit of unnecessary code from the helper routine
    Slice_construction_expression::create_array_val() that was adding
    an extra NULL value to empty slices (no longer needed).

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

From-SVN: r243682
gcc/go/gofrontend/MERGE
gcc/go/gofrontend/expressions.cc