Branch: Tag:

2022-01-17

2022-01-17 14:19:04 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Compiler: Support F_CLEAR_LOCAL in the parse tree.

This node is equivalent to F_ASSIGN with 0, but only valid for F_LOCAL
variables, and only when the variable will NOT be used afterwards.

The intent is to simplify avoiding of errors from the type system for
the case where the variable has a type that does not include zero.

2417:    }    break;    +  case F_CLEAR_LOCAL: +  low_print_tree(_CAR(foo),1); +  fprintf(stderr, "=0"); +  break; +     case F_ASSIGN:    case F_INITIALIZE:    low_print_tree(_CAR(foo),1);