Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5da926d

Browse files
anutosh491certik
authored andcommitted
addressed suggested change
1 parent a1b9a8b commit 5da926d

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/libasr/pass/replace_symbolic.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,7 @@ class ReplaceSymbolicVisitor : public PassUtils::PassVisitor<ReplaceSymbolicVisi
8181
std::string new_name = "basic_free_stack";
8282
ASR::symbol_t* basic_free_stack_sym = module_scope->get_symbol(new_name);
8383
Vec<ASR::stmt_t*> func_body;
84-
func_body.n = 0;
85-
func_body.reserve(al, 1);
86-
for (size_t i = 0; i < xx.n_body; i++) {
87-
func_body.push_back(al, xx.m_body[i]);
88-
}
84+
func_body.from_pointer_n_copy(al, xx.m_body, xx.n_body);
8985

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

0 commit comments

Comments
 (0)