Update go version
This commit is contained in:
4
vendor/golang.org/x/tools/go/callgraph/vta/internal/trie/scope.go
generated
vendored
4
vendor/golang.org/x/tools/go/callgraph/vta/internal/trie/scope.go
generated
vendored
@@ -16,10 +16,10 @@ type Scope struct {
|
||||
id int32
|
||||
}
|
||||
|
||||
var nextScopeId int32
|
||||
var nextScopeId atomic.Int32
|
||||
|
||||
func newScope() Scope {
|
||||
id := atomic.AddInt32(&nextScopeId, 1)
|
||||
id := nextScopeId.Add(1)
|
||||
return Scope{id: id}
|
||||
}
|
||||
|
||||
|
||||
4
vendor/golang.org/x/tools/go/callgraph/vta/propagation.go
generated
vendored
4
vendor/golang.org/x/tools/go/callgraph/vta/propagation.go
generated
vendored
@@ -155,9 +155,9 @@ func propagate(graph *vtaGraph, canon *typeutil.Map) propTypeMap {
|
||||
sccToTypes[sccID] = &typeSet
|
||||
}
|
||||
|
||||
for i := len(sccs) - 1; i >= 0; i-- {
|
||||
for i, scc := range slices.Backward(sccs) {
|
||||
nextSccs := make(map[int]empty)
|
||||
for _, n := range sccs[i] {
|
||||
for _, n := range scc {
|
||||
for succ := range graph.successors(n) {
|
||||
nextSccs[idxToSccID[succ]] = empty{}
|
||||
}
|
||||
|
||||
3
vendor/golang.org/x/tools/go/callgraph/vta/vta.go
generated
vendored
3
vendor/golang.org/x/tools/go/callgraph/vta/vta.go
generated
vendored
@@ -73,6 +73,9 @@ import (
|
||||
// CallGraph does not make any assumptions on initial types global variables
|
||||
// and function/method inputs can have. CallGraph is then sound, modulo use of
|
||||
// reflection and unsafe, if the initial call graph is sound.
|
||||
//
|
||||
// The supplied SSA functions must have been constructed with the
|
||||
// [ssa.InstantiateGenerics] mode flag.
|
||||
func CallGraph(funcs map[*ssa.Function]bool, initial *callgraph.Graph) *callgraph.Graph {
|
||||
callees := makeCalleesFunc(funcs, initial)
|
||||
vtaG, canon := typePropGraph(funcs, callees)
|
||||
|
||||
Reference in New Issue
Block a user