ssa: fix abi map init

This commit is contained in:
visualfc
2024-08-06 22:24:21 +08:00
parent 9ac0c06f26
commit 05a01cd803
5 changed files with 1757 additions and 1425 deletions

View File

@@ -414,6 +414,9 @@ func (b Builder) abiType(t types.Type) Expr {
b.loadType(t.Elem())
case *types.Array:
b.abiType(t.Elem())
case *types.Map:
b.abiType(t.Key())
b.abiType(t.Elem())
}
g := b.loadType(t)
return b.Load(g.Expr)