summaryrefslogtreecommitdiff
path: root/6
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2015-09-27 10:11:39 -0700
committerOri Bernstein <ori@eigenstate.org>2015-09-27 10:11:39 -0700
commit8e8d3f3d6f01046782529f853032daca2ab1976e (patch)
tree457645d9095c2af0c656fe55746530a5b44d8ef3 /6
parent35c02af69dcc70507e639209eeea181e8e088366 (diff)
downloadmc-8e8d3f3d6f01046782529f853032daca2ab1976e.tar.gz
Bump ABI version. Also, improve errors about it.
We now say which version we got, which version we expected, and only warn in mbld. This means that we can probably build newer usefiles with older mblds.
Diffstat (limited to '6')
-rw-r--r--6/simp.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/6/simp.c b/6/simp.c
index a546b03..dd24384 100644
--- a/6/simp.c
+++ b/6/simp.c
@@ -1322,7 +1322,7 @@ static Node *vatypeinfo(Simp *s, Node *n)
static Node *capture(Simp *s, Node *n, Node *dst)
{
- Node *fn, *t, *f, *e, *val, *dcl, *fp;
+ Node *fn, *t, *f, *e, *val, *dcl, *fp, *envsz;
size_t nenv, nenvt, off, i;
Type **envt;
Node **env;
@@ -1365,6 +1365,9 @@ static Node *capture(Simp *s, Node *n, Node *dst)
off += size(env[i]);
}
free(env);
+ envsz = mkintlit(n->loc, off);
+ envsz->expr.type = tyintptr;
+ assignat(s, e, 0, envsz);
assignat(s, fp, 0, e);
}
assignat(s, fp, Ptrsz, f);