compiler: fix off-by-1 array type len in Type::gc_symbol_constructor
authorIan Lance Taylor <ian@gcc.gnu.org>
Thu, 15 Dec 2016 23:44:13 +0000 (23:44 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Thu, 15 Dec 2016 23:44:13 +0000 (23:44 +0000)
commit63ba3ad3edb8d854e03a5d684636d2ee90dc9b05
treeaabc663b0ef6421ac37e7f6488b5d000baf593f0
parent62afb87d9c466ab33767fad6d74133a4ad925f52
compiler: fix off-by-1 array type len in Type::gc_symbol_constructor

    Array type being built to hold GC var initializer was being created
    with an extra/unneeded slot. Fix up the code to insure that the array
    length matches the length of the initializer list.

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

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