changeset 369:cd2c80d8cf8b

*** empty log message ***
author kono
date Wed, 07 Jul 2004 23:55:54 +0900
parents be56772ab12a
children c6c1323be02d
files mc-codegen.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mc-codegen.c	Wed Jul 07 23:43:19 2004 +0900
+++ b/mc-codegen.c	Wed Jul 07 23:55:54 2004 +0900
@@ -806,6 +806,10 @@
 	// find free target
 	for(free=assigns;free;free=cadr(free)) {
 	    if (!caddr(free)) continue;       // already done
+	    if (car(free)==caddr(free)) {
+		caddr(free)=0;
+		continue;
+	    }
 	    remains++;
 	    t0 = car(free);                   // target register
 	    // check target is free