From 1767b144a15d30b79c7744524828fe10bf07a862 Mon Sep 17 00:00:00 2001 From: Alan Donovan Date: Fri, 31 May 2024 18:38:04 -0400 Subject: [PATCH] go/ssa: remove code with no effect Pointed out by Dominik Honnef in CL 555075. Change-Id: I2f178870838d10163af6267386a8ddb0f6111a98 Reviewed-on: https://go-review.googlesource.com/c/tools/+/589655 LUCI-TryBot-Result: Go LUCI Auto-Submit: Alan Donovan Reviewed-by: Tim King --- go/ssa/func.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/go/ssa/func.go b/go/ssa/func.go index bbbab873de3..2ed63bfd53e 100644 --- a/go/ssa/func.go +++ b/go/ssa/func.go @@ -188,10 +188,6 @@ func targetedBlock(f *Function, tok token.Token) *BasicBlock { // addResultVar adds a result for a variable v to f.results and v to f.returnVars. func (f *Function) addResultVar(v *types.Var) { - name := v.Name() - if name == "" { - name = fmt.Sprintf("res%d", len(f.results)) - } result := emitLocalVar(f, v) f.results = append(f.results, result) f.returnVars = append(f.returnVars, v)