]> Cypherpunks repositories - gostls13.git/commit
cmd/gc: don't emit type instructions for nonexisting locals
authorDaniel Morsing <daniel.morsing@gmail.com>
Wed, 27 Feb 2013 18:47:14 +0000 (19:47 +0100)
committerDaniel Morsing <daniel.morsing@gmail.com>
Wed, 27 Feb 2013 18:47:14 +0000 (19:47 +0100)
commit43c04ba1b8c81114d09c0f9f326987070e0ee291
treea76a26b93cee873c6addc0f2115cbaae3657e434
parent73c21b13127c8dfad73d4477aa3dd9785515bf2b
cmd/gc: don't emit type instructions for nonexisting locals

If all locals are optimized away, the type instructions would stay in the instruction stream. Call fixautoused to scrub the output.

Fixes #4915.

R=rsc
CC=golang-dev
https://golang.org/cl/7385055
src/cmd/gc/pgen.c