parse return types of functions

This commit is contained in:
Quentin Carbonneaux 2015-09-22 16:52:48 -04:00
parent 9db3c3cf3e
commit 98c5a405bb
3 changed files with 32 additions and 5 deletions

View file

@ -332,7 +332,7 @@ emitfn(Fn *fn, FILE *f)
for (i=b->ins; i-b->ins < b->nins; i++)
eins(*i, fn, f);
switch (b->jmp.type) {
case JRet:
case JRet0:
for (r=&rclob[NRClob]; r>rclob;)
if (fn->reg & BIT(*--r))
emitf(fn, f, "pop%w %R", 1, TMP(*r));