Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
addressed suggested change
  • Loading branch information
anutosh491 authored and certik committed Aug 13, 2023
commit 5da926de6e9ba177c80863c19c17cce415bde094
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