Descriptioncmd/gc: fix escape analysis for &x inside switch x := v.(type)
The analysis for &x was using the loop depth on x set
during x's declaration. A type switch creates a list of
implicit declarations that were not getting initialized
with loop depths.
Fixes issue 8176.
Patch Set 1 #Patch Set 2 : diff -r 00224712f89e https://code.google.com/p/go/ #Patch Set 3 : diff -r 00224712f89e https://code.google.com/p/go/ #Patch Set 4 : diff -r 6146799f32ed https://code.google.com/p/go/ #MessagesTotal messages: 3
|