We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2088083 commit 1767b14Copy full SHA for 1767b14
go/ssa/func.go
@@ -188,10 +188,6 @@ func targetedBlock(f *Function, tok token.Token) *BasicBlock {
188
189
// addResultVar adds a result for a variable v to f.results and v to f.returnVars.
190
func (f *Function) addResultVar(v *types.Var) {
191
- name := v.Name()
192
- if name == "" {
193
- name = fmt.Sprintf("res%d", len(f.results))
194
- }
195
result := emitLocalVar(f, v)
196
f.results = append(f.results, result)
197
f.returnVars = append(f.returnVars, v)
0 commit comments