aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree.c
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@gcc.gnu.org>2013-08-17 18:04:35 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2013-08-17 18:04:35 +0000
commitf4fca9d48101c0a7e6073fb280e65f976f582811 (patch)
treedb2a4ef73c5f043aa93ea0f8a006dc3afbc40b11 /gcc/tree.c
parent47fa5d230292f22802436d3f58af758795da3cbe (diff)
downloadgcc-f4fca9d48101c0a7e6073fb280e65f976f582811.zip
gcc-f4fca9d48101c0a7e6073fb280e65f976f582811.tar.gz
gcc-f4fca9d48101c0a7e6073fb280e65f976f582811.tar.bz2
compiler: Don't generate value reference in range clause if receiver is a sink.
The panic in test/fixedbugs/bug454.go was caused by the generation of an unnecessary var reference when writing a range value into a sink. If the receiving variable is a sink, there's no need to dereference a possible NULL pointer. Fixes Issue 24. From-SVN: r201815
Diffstat (limited to 'gcc/tree.c')
0 files changed, 0 insertions, 0 deletions