fix a seg on return type mismatch

This commit is contained in:
Bill Currie 2001-07-23 05:46:00 +00:00
parent 4b744b6be5
commit d2c266775c

View file

@ -958,7 +958,7 @@ return_expr (function_t *f, expr_t *e)
}
if (f->def->type->aux_type != t)
return error (e, "type mismatch for return value of %s",
e->e.def->name);
f->def->name);
}
return new_unary_expr ('r', e);
}