aboutsummaryrefslogtreecommitdiff
path: root/src/ir_opt.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ir_opt.cpp')
-rw-r--r--src/ir_opt.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ir_opt.cpp b/src/ir_opt.cpp
index 0ec3838bd..5e6dff572 100644
--- a/src/ir_opt.cpp
+++ b/src/ir_opt.cpp
@@ -62,7 +62,7 @@ void ir_opt_add_operands(Array<irValue *> *ops, irInstr *i) {
break;
case irInstr_Call:
array_add(ops, i->Call.value);
- for (isize j = 0; j < i->Call.arg_count; j++) {
+ for_array(j, i->Call.args) {
array_add(ops, i->Call.args[j]);
}
break;