compiler: Don't crash on append with single argument.
authorIan Lance Taylor <ian@gcc.gnu.org>
Wed, 17 Dec 2014 01:04:39 +0000 (01:04 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Wed, 17 Dec 2014 01:04:39 +0000 (01:04 +0000)
commitd8a99c7c6bce947706eeafbf69ec214845eb4a66
tree5a271d4630e9f505f2b3001cb9d31874df347a89
parent03625f0717107775ae01d7bd5a82bc081c96c13c
compiler: Don't crash on append with single argument.

Instead of allocating an empty slice literal, use a slice
value with a nil pointer.

From-SVN: r218806
gcc/go/gofrontend/expressions.cc