From f28a34fa99d68ce54c76272385ff9c172cc2ae59 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Sun, 25 Feb 2018 15:31:00 +0000 Subject: Use Array in ir.cpp --- src/ir_opt.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ir_opt.cpp') 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 *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; -- cgit v1.2.3