]> git.ipfire.org Git - thirdparty/gcc.git/commit
compiler: use nil pointer for zero length string constant
authorIan Lance Taylor <iant@golang.org>
Wed, 9 Feb 2022 04:16:38 +0000 (20:16 -0800)
committerIan Lance Taylor <iant@golang.org>
Wed, 9 Feb 2022 22:13:33 +0000 (14:13 -0800)
commit2e2b861e8941c4e9b36b88e9c562642b1aba6eaf
tree1875086aacad0b6a90747d81b4040d7f85727fcc
parent70feb6839fe1f13982eb03096bd1140b59881b76
compiler: use nil pointer for zero length string constant

We used to pointlessly set the pointer of a zero length string
constant to point to a zero byte constant.  Instead, just use nil.

Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/384354
gcc/go/gofrontend/MERGE
gcc/go/gofrontend/expressions.cc