ssa: index check take address

This commit is contained in:
visualfc
2024-07-03 13:21:18 +08:00
parent 28d8c56534
commit 490a16a8df
8 changed files with 1154 additions and 548 deletions

View File

@@ -406,7 +406,7 @@ func (b Builder) abiType(t types.Type) Expr {
case *types.Pointer:
b.loadType(t.Elem())
case *types.Array:
b.loadType(t.Elem())
b.abiType(t.Elem())
}
g := b.loadType(t)
return b.Load(g.Expr)