diff lwasm/lwasm.c @ 200:348e2816ce32

Short ciruit some recursion in expression library
author William Astle <lost@l-w.ca>
date Fri, 16 Mar 2012 19:44:12 -0600
parents 8dead67ba607
children 52d9dd71f555
line wrap: on
line diff
--- a/lwasm/lwasm.c	Fri Mar 16 17:29:53 2012 -0600
+++ b/lwasm/lwasm.c	Fri Mar 16 19:44:12 2012 -0600
@@ -649,8 +649,7 @@
 
 int lwasm_reduce_expr(asmstate_t *as, lw_expr_t expr)
 {
-	if (expr)
-		lw_expr_simplify(expr, as);
+	lw_expr_simplify(expr, as);
 	return 0;
 }