summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--rega.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/rega.c b/rega.c
index 7547293..bd26f1c 100644
--- a/rega.c
+++ b/rega.c
@@ -359,10 +359,9 @@ doblk(Blk *b, RMap *cur)
 	Mem *m;
 	Ref *ra[4];
 
+	assert(rtype(b->jmp.arg) != RTmp);
 	for (r=0; bsiter(b->out, &r) && r<Tmp0; r++)
 		radd(cur, r, r);
-	if (rtype(b->jmp.arg) == RTmp)
-		b->jmp.arg = ralloc(cur, b->jmp.arg.val);
 	curi = &insb[NIns];
 	for (i1=&b->ins[b->nins]; i1!=b->ins;) {
 		emiti(*--i1);