[BACK]Return to func.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / usr.bin / xlint / lint1

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/usr.bin/xlint/lint1/func.c between version 1.99 and 1.100

version 1.99, 2021/04/02 10:13:03 version 1.100, 2021/04/02 11:53:25
Line 1051  do_return(tnode_t *tn)
Line 1051  do_return(tnode_t *tn)
                 /* Create a temporary node for the left side */                  /* Create a temporary node for the left side */
                 ln = expr_zalloc(sizeof *ln);                  ln = expr_zalloc(sizeof *ln);
                 ln->tn_op = NAME;                  ln->tn_op = NAME;
                 ln->tn_type = tduptyp(funcsym->s_type->t_subt);                  ln->tn_type = expr_dup_type(funcsym->s_type->t_subt);
                 ln->tn_type->t_const = false;                  ln->tn_type->t_const = false;
                 ln->tn_lvalue = true;                  ln->tn_lvalue = true;
                 ln->tn_sym = funcsym;           /* better than nothing */                  ln->tn_sym = funcsym;           /* better than nothing */

Legend:
Removed from v.1.99  
changed lines
  Added in v.1.100

CVSweb <webmaster@jp.NetBSD.org>