summary refs log tree commit diff
path: root/isel.c
diff options
context:
space:
mode:
Diffstat (limited to 'isel.c')
-rw-r--r--isel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/isel.c b/isel.c
index 9a60554..708cc0d 100644
--- a/isel.c
+++ b/isel.c
@@ -162,7 +162,7 @@ seladdr(Ref *r, ANum *an, Fn *fn)
 	r0 = *r;
 	if (rtype(r0) == RTmp) {
 		amatch(&a, r0, an, fn, 1);
-		if (req(a.base, R))
+		if (req(a.base, R) || req(a.base, r0))
 			return;
 		chuse(r0, -1, fn);
 		vgrow(&fn->mem, ++fn->nmem);