shithub: mc

Download patch

ref: 8cb3f72ad2c0fe747e5178b7d593380550a07f76
parent: 5a1d952aa7f08885c8de6afbbfa948c675f79f89
author: Ori Bernstein <[email protected]>
date: Sun Dec 13 17:28:12 EST 2015

Don't generate useless assignments.

	We never generate them...

--- a/mi/match.c
+++ b/mi/match.c
@@ -351,8 +351,6 @@
 {
 	Node *asn;
 
-	asn = mkexpr(pat->loc, Oasn, pat, val, NULL);
-	asn->expr.type = exprtype(pat);
 	if (cap && ncap) {
 		asn = mkexpr(pat->loc, Oasn, pat, val, NULL);
 		asn->expr.type = exprtype(pat);