Skip to content

Commit

Permalink
Merge pull request goplus#726 from visualfc/fixmap
Browse files Browse the repository at this point in the history
ssa: fix map zero
  • Loading branch information
xushiwei authored Aug 16, 2024
2 parents 998fbeb + 8fbe21c commit 53d2d08
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ssa/expr.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,8 @@ func (p Program) Zero(t Type) Expr {
name = "Iface"
}
ret = p.Zero(p.rtType(name)).impl
case *types.Map:
ret = p.Zero(p.rtType("Map")).impl
default:
log.Panicln("todo:", u)
}
Expand Down

0 comments on commit 53d2d08

Please sign in to comment.