small adaption to "awayreg".
authorceriel <none@none>
Thu, 8 Jan 1987 14:09:14 +0000 (14:09 +0000)
committerceriel <none@none>
Thu, 8 Jan 1987 14:09:14 +0000 (14:09 +0000)
mach/proto/cg/reg.c

index bc94e89..b9db3a4 100644 (file)
@@ -99,7 +99,7 @@ awayreg(regno) {
                if (rp->r_contents.t_token == -1) {
                        if (rp->r_contents.t_att[0].ar == regno)
                                erasereg(rp-machregs);
-               } else {
+               } else if (rp->r_contents.t_token > 0) {
                        tdp= & tokens[rp->r_contents.t_token];
                        for (i=0;i<TOKENSIZE;i++)
                                if (tdp->t_type[i] == EV_REG &&