Skip to content

Commit

Permalink
Update src/libasr/pass/pass_utils.h
Browse files Browse the repository at this point in the history
Co-authored-by: Thirumalai Shaktivel <74826228+Thirumalai-Shaktivel@users.noreply.github.com>
  • Loading branch information
tanay-man and Thirumalai-Shaktivel authored Aug 14, 2024
1 parent f5e1554 commit 459a75c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libasr/pass/pass_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -594,7 +594,7 @@ namespace LCompilers {
ASR::Var_t* target = ASR::down_cast<ASR::Var_t>(replacer->result_var);
ASR::call_arg_t first_arg;
first_arg.loc = x->base.base.loc; first_arg.m_value = replacer->result_var;
Vec<ASR::call_arg_t> new_args; new_args.reserve(replacer->al,1);
Vec<ASR::call_arg_t> new_args; new_args.reserve(replacer->al,x->n_args+1);
new_args.push_back(replacer->al, first_arg);
for( size_t i = 0; i < x->n_args; i++ ) {
new_args.push_back(replacer->al, x->m_args[i]);
Expand Down

0 comments on commit 459a75c

Please sign in to comment.