check for uninitialized variables in return statements

This commit is contained in:
Bill Currie 2007-04-28 08:48:01 +00:00 committed by Jeff Teunissen
parent a376e6f86d
commit 3deee307a8

View file

@ -2078,6 +2078,7 @@ return_expr (function_t *f, expr_t *e)
e->e.float_val = e->e.integer_val;
t = &type_float;
}
check_initialized (e);
if (t == &type_void) {
if (e->type == ex_nil) {
t = f->def->type->aux_type;