summary refs log tree commit diff
path: root/live.c
diff options
context:
space:
mode:
Diffstat (limited to 'live.c')
-rw-r--r--live.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/live.c b/live.c
index 66c84e8..785a535 100644
--- a/live.c
+++ b/live.c
@@ -8,7 +8,8 @@ liveon(BSet *v, Blk *b, Blk *s)
 
 	bscopy(v, s->in);
 	for (p=s->phi; p; p=p->link)
-		bsclr(v, p->to.val);
+		if (rtype(p->to) == RTmp)
+			bsclr(v, p->to.val);
 	for (p=s->phi; p; p=p->link)
 		for (a=0; a<p->narg; a++)
 			if (p->blk[a] == b)