From df316be4016b0cce7aac4ccec52445d48606bf92 Mon Sep 17 00:00:00 2001 From: yui-knk Date: Sun, 17 Sep 2023 13:44:11 +0900 Subject: [PATCH] nd_aid of NODE_OP_ASGN_OR is not used then no need to set it --- parse.y | 8 -------- 1 file changed, 8 deletions(-) diff --git a/parse.y b/parse.y index 8893b9ce97..462ec22f61 100644 --- a/parse.y +++ b/parse.y @@ -13052,14 +13052,6 @@ new_op_assign(struct parser_params *p, NODE *lhs, ID op, NODE *rhs, struct lex_c lhs->nd_value = rhs; nd_set_loc(lhs, loc); asgn = NEW_OP_ASGN_OR(gettable(p, vid, &lhs_loc), lhs, loc); - if (is_notop_id(vid)) { - switch (id_type(vid)) { - case ID_GLOBAL: - case ID_INSTANCE: - case ID_CLASS: - asgn->nd_aid = vid; - } - } } else if (op == tANDOP) { if (shareable) {