diff --git a/src/cmd/compile/internal/gc/sinit.go b/src/cmd/compile/internal/gc/sinit.go index 3a40d15acd2..393211c2dd6 100644 --- a/src/cmd/compile/internal/gc/sinit.go +++ b/src/cmd/compile/internal/gc/sinit.go @@ -217,6 +217,7 @@ func (s *InitSchedule) staticassign(l *Node, r *Node) bool { // Init slice. bound := r.Right.Int64() ta := types.NewArray(r.Type.Elem(), bound) + ta.SetNoalg(true) a := staticname(ta) s.inittemps[r] = a slicesym(l, a, bound)