diff --git a/tools/qfcc/source/expr.c b/tools/qfcc/source/expr.c index 9ecf0ad15..a8684a83b 100644 --- a/tools/qfcc/source/expr.c +++ b/tools/qfcc/source/expr.c @@ -2075,7 +2075,7 @@ return_expr (function_t *f, expr_t *e) t = get_type (e); - if (e->type == ex_error) { + if (!t) { return e; } if (is_void(ret_type)) {