Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@xxxxxxxxx> --- sparse-llvm.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/sparse-llvm.c b/sparse-llvm.c index 51fd6a96a..23ae482e1 100644 --- a/sparse-llvm.c +++ b/sparse-llvm.c @@ -709,10 +709,7 @@ static void output_op_call(struct function *fn, struct instruction *insn) struct instruction *arg; LLVMValueRef *args; - FOR_EACH_PTR(insn->arguments, arg) { - n_arg++; - } END_FOR_EACH_PTR(arg); - + n_arg = instruction_list_size(insn->arguments); args = calloc(n_arg, sizeof(LLVMValueRef)); i = 0; -- 2.12.0 -- To unsubscribe from this list: send the line "unsubscribe linux-sparse" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html