Skip to content

Commit

Permalink
go/callgraph: fix trivial mistake in benchmark
Browse files Browse the repository at this point in the history
My bad.

Change-Id: I83a367eb5aca28a94c694a3327f43326df67a701
Reviewed-on: https://go-review.googlesource.com/c/tools/+/637295
Reviewed-by: Zvonimir Pavlinovic <[email protected]>
LUCI-TryBot-Result: Go LUCI <[email protected]>
  • Loading branch information
adonovan committed Dec 26, 2024
1 parent e56f71a commit 6d4eee4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions go/callgraph/callgraph_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ func main() {

var (
once sync.Once
prog *ssa.Program
main *ssa.Function
)

Expand All @@ -82,7 +81,7 @@ func example(t testing.TB) (*ssa.Program, *ssa.Function) {
prog.Build()
main = ssapkgs[0].Members["main"].(*ssa.Function)
})
return prog, main
return main.Prog, main
}

var stats bool = false // print stats?
Expand Down

0 comments on commit 6d4eee4

Please sign in to comment.