From b49f583ab7e3d6c754145198bcd0915d55e1a445 Mon Sep 17 00:00:00 2001 From: Ayke van Laethem Date: Fri, 24 Apr 2026 17:04:59 +0200 Subject: [PATCH] loader: re-enable sanity check We used to have this, but it was disabled to work around an upstream bug. Let's see whether it can be re-enabled. --- loader/ssa.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/loader/ssa.go b/loader/ssa.go index f2cc453679..a514d71d7f 100644 --- a/loader/ssa.go +++ b/loader/ssa.go @@ -8,9 +8,7 @@ import ( // // The program must already be parsed and type-checked with the .Parse() method. func (p *Program) LoadSSA() *ssa.Program { - // TODO: re-enable SanityCheckFunctions when x/tools is upgraded to - // a version with a fix for https://golang.org/issues/73594. - prog := ssa.NewProgram(p.fset /*ssa.SanityCheckFunctions|*/, ssa.BareInits|ssa.GlobalDebug|ssa.InstantiateGenerics) + prog := ssa.NewProgram(p.fset, ssa.SanityCheckFunctions|ssa.BareInits|ssa.GlobalDebug|ssa.InstantiateGenerics) for _, pkg := range p.sorted { prog.CreatePackage(pkg.Pkg, pkg.Files, &pkg.info, true)