Project

General

Profile

Bug #15052 ยป do-not-optimize-keyword-argument-with-empty-hash.patch

mame (Yusuke Endoh), 08/31/2018 12:07 PM

View differences:

parse.y
4314 4314
				/* DSTAR */
4315 4315
				tail = tail->nd_next->nd_head->nd_head;
4316 4316
			    }
4317
			    assocs = list_concat(assocs, tail);
4317
			    if (tail) assocs = list_concat(assocs, tail);
4318 4318
			}
4319 4319
			$$ = assocs;
4320 4320
		    /*% %*/
......
4351 4351
		| tDSTAR arg_value
4352 4352
		    {
4353 4353
		    /*%%%*/
4354
			if (nd_type($2) == NODE_HASH &&
4355
			    !($2->nd_head && $2->nd_head->nd_alen))
4356
			    $$ = 0;
4357
			else
4358
			    $$ = list_append(p, NEW_LIST(0, &@$), $2);
4354
			$$ = list_append(p, NEW_LIST(0, &@$), $2);
4359 4355
		    /*% %*/
4360 4356
		    /*% ripper: assoc_splat!($2) %*/
4361 4357
		    }