that wasn't supposed to go in

This commit is contained in:
Bill Currie 2007-05-07 12:18:54 +00:00 committed by Jeff Teunissen
parent 72daa2fd2b
commit 8f365c4512

View file

@ -594,9 +594,8 @@ opt_initializer
var_initializer var_initializer
: '=' expr // don't bother folding twice : '=' expr // don't bother folding twice
{ {
if (current_scope->type == sc_params) { if (current_scope->type == sc_local
notice (0, "whee"); || current_scope->type == sc_params) {
} else if (current_scope->type == sc_local) {
expr_t *expr = assign_expr (new_def_expr ($<def>0), $2); expr_t *expr = assign_expr (new_def_expr ($<def>0), $2);
expr = fold_constants (expr); expr = fold_constants (expr);
append_expr (local_expr, expr); append_expr (local_expr, expr);