summary refs log tree commit diff
path: root/lisc/rega.c
diff options
context:
space:
mode:
Diffstat (limited to 'lisc/rega.c')
-rw-r--r--lisc/rega.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisc/rega.c b/lisc/rega.c
index df4d2aa..703a93b 100644
--- a/lisc/rega.c
+++ b/lisc/rega.c
@@ -352,7 +352,8 @@ rega(Fn *fn)
 				}
 				if (i->to.val >= Tmp0)
 					i->to = reg(r, i->to.val);
-			}
+			} else
+				r = 0;
 			if (rtype(i->arg[0]) == RTmp) {
 				/* <arch>
 				 *   on Intel, we attempt to