Fix codegen bug in env capture.
We could capture too little in the env, because we didn't
account for padding in the captures.
@@ -994,6 +994,7 @@ capture(Simp *s, Node *n, Node *dst)
for (i = 0; i < nenv; i++) {
lappend(&envt, &nenvt, decltype(env[i]));
sz += size(env[i]);
+ sz = alignto(sz, decltype(env[i]));
}
t = gentemp(n->loc, mktytuple(n->loc, envt, nenvt), &dcl);
