Commit 4c5a1658 authored by Ken Thompson's avatar Ken Thompson

len(fixed array)

SVN=128050
parent 0ca551fc
...@@ -613,3 +613,4 @@ void dumpobj(void); ...@@ -613,3 +613,4 @@ void dumpobj(void);
void dowidth(Type*); void dowidth(Type*);
void argspace(long); void argspace(long);
Node* nodarg(Type*, int); Node* nodarg(Type*, int);
void nodconst(Node*, Type*, vlong);
...@@ -501,8 +501,11 @@ loop: ...@@ -501,8 +501,11 @@ loop:
default: default:
goto badt; goto badt;
case TSTRING: case TSTRING:
break;
case TMAP: case TMAP:
case TDARRAY:
break;
case TARRAY:
nodconst(n, types[TINT32], t->bound);
break; break;
} }
n->type = types[TINT32]; n->type = types[TINT32];
......
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