aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ir_regalloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ir_regalloc.c')
-rw-r--r--src/ir_regalloc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ir_regalloc.c b/src/ir_regalloc.c
index 3b204c6..ec1802d 100644
--- a/src/ir_regalloc.c
+++ b/src/ir_regalloc.c
@@ -1155,7 +1155,7 @@ devirt(RegAlloc *ra, Block *blk)
int nspill = 0;
/** devirtualize operands **/
- for (int i = 0; i < 3; ++i) {
+ for (int i = 0; i < opnarg[ins->op]; ++i) {
Ref *r = &ins->oper[i];
if (r->t == RADDR) {
IRAddr *a = &addrtab.p[r->i];