Skip to content

Commit 6d4eee4

Browse files
committed
go/callgraph: fix trivial mistake in benchmark
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]>
1 parent e56f71a commit 6d4eee4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

go/callgraph/callgraph_test.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ func main() {
7171

7272
var (
7373
once sync.Once
74-
prog *ssa.Program
7574
main *ssa.Function
7675
)
7776

@@ -82,7 +81,7 @@ func example(t testing.TB) (*ssa.Program, *ssa.Function) {
8281
prog.Build()
8382
main = ssapkgs[0].Members["main"].(*ssa.Function)
8483
})
85-
return prog, main
84+
return main.Prog, main
8685
}
8786

8887
var stats bool = false // print stats?

0 commit comments

Comments
 (0)