summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/cmd/gc/walk.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cmd/gc/walk.c b/src/cmd/gc/walk.c
index f24933483..58d24bca0 100644
--- a/src/cmd/gc/walk.c
+++ b/src/cmd/gc/walk.c
@@ -2671,6 +2671,7 @@ arrayop(Node *n, int top)
r = nod(OCALL, on, r);
walktype(r, top);
+ r->type = t; // if t had a name, going through newarray lost it
break;
case OSLICE: