summaryrefslogtreecommitdiff
path: root/6/blob.c
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2015-08-02 00:18:36 -0700
committerOri Bernstein <ori@eigenstate.org>2015-08-02 00:18:36 -0700
commit1ac0bb9cd95650fd0029f354f874974d1772a601 (patch)
tree0c76fef5c03654c16feae4da68b7ca57c6dc1977 /6/blob.c
parentae494e5d5cbc5ff8094f47efdec22898d84dde63 (diff)
downloadmc-1ac0bb9cd95650fd0029f354f874974d1772a601.tar.gz
Initial support for indexed initializers.
Diffstat (limited to '6/blob.c')
-rw-r--r--6/blob.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/6/blob.c b/6/blob.c
index 59a5dbf..95e5678 100644
--- a/6/blob.c
+++ b/6/blob.c
@@ -255,6 +255,7 @@ static size_t blobrec(Blob *b, Htab *globls, Htab *strtab, Node *n)
case Olit: sz = bloblit(b, strtab, n->expr.args[0], exprtype(n)); break;
case Otup:
case Oarr:
+ /* Assumption: We sorted this while folding */
sz = 0;
for (i = 0; i < n->expr.nargs; i++)
sz += blobrec(b, globls, strtab, n->expr.args[i]);