ssa: fix type of ChanOp.Size

This commit is contained in:
Li Jie
2024-11-24 15:20:12 +08:00
parent e042aad819
commit 17832fe18c
2 changed files with 4 additions and 4 deletions

View File

@@ -757,7 +757,7 @@ func (b Builder) chanOp(s *SelectState) Expr {
} else {
etyp := prog.Elem(s.Chan.Type)
val = b.Alloc(etyp, false)
size = prog.IntVal(prog.SizeOf(etyp), prog.Int())
size = prog.IntVal(prog.SizeOf(etyp), prog.Int32())
}
send := prog.BoolVal(s.Send)
typ := b.Prog.rtType("ChanOp")