Commit b93fa309 authored by Russ Cox's avatar Russ Cox

cmd/6g: allow componentgen of slice inside struct

Change-Id: I847bf32bd0be913fad277c5e657f44df147eee14
Reviewed-on: https://go-review.googlesource.com/7729Reviewed-by: 's avatarRob Pike <r@golang.org>
Reviewed-by: 's avatarMinux Ma <minux@golang.org>
parent 08af4c3a
......@@ -1668,7 +1668,7 @@ func componentgen(nr *gc.Node, nl *gc.Node) bool {
fldcount := int64(0)
for t := nl.Type.Type; t != nil; t = t.Down {
if gc.Isfat(t.Type) {
if gc.Isfat(t.Type) && !gc.Isslice(t) {
goto no
}
if t.Etype != gc.TFIELD {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment