ssa: PyVal support pyfunc

This commit is contained in:
visualfc
2025-07-29 20:55:56 +08:00
parent a9193e36ff
commit 2538be9318
3 changed files with 27 additions and 5 deletions

View File

@@ -463,6 +463,9 @@ func (b Builder) PyVal(v Expr) (ret Expr) {
if v.Type == b.Prog.PyObjectPtr() {
return v
}
if v.kind == vkPyFuncRef {
return b.Load(v)
}
}
panic("PyVal: todo " + v.raw.Type.String())
}