summary refs log tree commit diff
path: root/lisc
diff options
context:
space:
mode:
authorQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2016-03-18 15:44:26 -0400
committerQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2016-03-18 15:44:26 -0400
commit95df8e55fe8f6a0bdea19787f9c5deec8edd544c (patch)
treee3ec0699b7afa658efc0d7997fed4120e25f47f5 /lisc
parentf625e49cb0180a2e6d4aa8e47dd889e13f8520cf (diff)
downloadroux-95df8e55fe8f6a0bdea19787f9c5deec8edd544c.tar.gz
remove spurious assignments in rega
Diffstat (limited to 'lisc')
-rw-r--r--lisc/rega.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/lisc/rega.c b/lisc/rega.c
index b50321c..6c01dbb 100644
--- a/lisc/rega.c
+++ b/lisc/rega.c
@@ -371,7 +371,6 @@ doblk(Blk *b, RMap *cur)
 			for (r=0; r<NRSave; r++)
 				if (!(BIT(rsave[r]) & rs))
 					rfree(cur, rsave[r]);
-			r = 0;
 			break;
 		case OCopy:
 			if (isreg(i->arg[0])) {
@@ -392,8 +391,7 @@ doblk(Blk *b, RMap *cur)
 				}
 				if (i->to.val >= Tmp0)
 					i->to = TMP(r);
-			} else
-				r = 0;
+			}
 			break;
 		}
 		for (x=0, nr=0; x<2; x++)