aboutsummaryrefslogtreecommitdiff
path: root/src/ir_opt.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2018-02-25 15:31:00 +0000
committergingerBill <bill@gingerbill.org>2018-02-25 15:31:00 +0000
commitf28a34fa99d68ce54c76272385ff9c172cc2ae59 (patch)
tree36e203f0e8d440bf54e3164d0c4ae6501bb7c8c9 /src/ir_opt.cpp
parenta1e8de4e00e536c94ec87903569a68e51d95b31f (diff)
Use Array<irValue *> in ir.cpp
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;