diff lwasm/lwasm.c @ 38:7e92484cfbc3

Caused expressions used in setdp and conditionals to be reduced on pass 1
author lost@l-w.ca
date Sat, 02 Apr 2011 02:19:02 -0600
parents 421d7ceb4d86
children 1bff302e62a3
line wrap: on
line diff
--- a/lwasm/lwasm.c	Fri Apr 01 23:58:55 2011 -0600
+++ b/lwasm/lwasm.c	Sat Apr 02 02:19:02 2011 -0600
@@ -602,7 +602,8 @@
 
 int lwasm_reduce_expr(asmstate_t *as, lw_expr_t expr)
 {
-	lw_expr_simplify(expr, as);
+	if (expr)
+		lw_expr_simplify(expr, as);
 	return 0;
 }