diff --git a/tools/qfcc/source/expr.c b/tools/qfcc/source/expr.c index c577aa19e..ee3c98637 100644 --- a/tools/qfcc/source/expr.c +++ b/tools/qfcc/source/expr.c @@ -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); }