parse.cc
156 KB
-
compiler: Don't generate value reference in range clause if receiver is a sink. · f4fca9d4
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
Ian Lance Taylor committed