Descriptioncmd/gc: fix escape analysis bug
The code assumed that the only choices were EscNone, EscScope, and EscHeap,
so that it makes sense to set EscScope only if the current setting is EscNone.
Now that we have the many variants of EscReturn, this logic is false, and it was
causing important EscScopes to be ignored in favor of EscReturn.
Fixes issue 4360.
Patch Set 1 #Patch Set 2 : diff -r 25dcee3d220c https://code.google.com/p/go/ #Patch Set 3 : diff -r ca94b72025c5 https://code.google.com/p/go/ #
MessagesTotal messages: 3
|