Skip to content

Commit

Permalink
go/ssa: remove code with no effect
Browse files Browse the repository at this point in the history
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 <[email protected]>
Auto-Submit: Alan Donovan <[email protected]>
Reviewed-by: Tim King <[email protected]>
  • Loading branch information
adonovan authored and gopherbot committed Jun 4, 2024
1 parent 2088083 commit 1767b14
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions go/ssa/func.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 1767b14

Please sign in to comment.