fix(ssa): fix incorrectly generated ABI for uninstantiated generic methods

This commit is contained in:
Li Jie
2025-01-17 18:14:28 +08:00
parent e016e92c41
commit 918b36e28f
3 changed files with 29 additions and 3 deletions

View File

@@ -260,6 +260,8 @@ func (p *context) compileFuncDecl(pkg llssa.Package, f *ssa.Function) (llssa.Fun
fn.Inline(llssa.NoInline)
}
}
// set compiled to check generic function global instantiation
pkg.Prog.SetFuncCompiled(name)
isCgo := isCgoExternSymbol(f)
if nblk := len(f.Blocks); nblk > 0 {
p.cgoCalled = false