Skip to content

Commit

Permalink
addressed suggested change
Browse files Browse the repository at this point in the history
  • Loading branch information
anutosh491 authored and certik committed Aug 13, 2023
1 parent a1b9a8b commit 5da926d
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/libasr/pass/replace_symbolic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,7 @@ class ReplaceSymbolicVisitor : public PassUtils::PassVisitor<ReplaceSymbolicVisi
std::string new_name = "basic_free_stack";
ASR::symbol_t* basic_free_stack_sym = module_scope->get_symbol(new_name);
Vec<ASR::stmt_t*> func_body;
func_body.n = 0;
func_body.reserve(al, 1);
for (size_t i = 0; i < xx.n_body; i++) {
func_body.push_back(al, xx.m_body[i]);
}
func_body.from_pointer_n_copy(al, xx.m_body, xx.n_body);

for (ASR::symbol_t* symbol : symbolic_vars) {
Vec<ASR::call_arg_t> call_args;
Expand Down

0 comments on commit 5da926d

Please sign in to comment.