Description[release-branch.go1.1] cmd/gc: save local var list before inlining
««« CL 10210043 / b357e33bb414
cmd/gc: save local var list before inlining
This avoids problems with inlining in genwrappers, which
occurs after functions have been compiled. Compiling a
function may cause some unused local vars to be removed from
the list. Since a local var may be unused due to
optimization, it is possible that a removed local var winds up
beingused in the inlined version, in which case hilarity
ensues.
Fixes issue 5515.
R=golang-dev, khr, dave
CC=golang-dev
https://codereview.appspot.com/10210043
»»»
Patch Set 1 #Patch Set 2 : diff -r 04ceae5a1650 https://code.google.com/p/go #Patch Set 3 : diff -r 04ceae5a1650 https://code.google.com/p/go #
MessagesTotal messages: 3
|