Update go version

This commit is contained in:
dwrz
2026-08-21 10:23:37 +00:00
parent 78248a6145
commit c2e2d9ea02
466 changed files with 67766 additions and 2881 deletions

View File

@@ -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}
}

View File

@@ -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{}
}

View File

@@ -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)