Skip to content

Commit

Permalink
Add get_builder0 macro to declare auxiliary variables at entry po…
Browse files Browse the repository at this point in the history
…int of functions (lcompilers#2205)
  • Loading branch information
czgdp1807 committed Jul 27, 2023
1 parent c1a613b commit 94fb130
Show file tree
Hide file tree
Showing 3 changed files with 113 additions and 283 deletions.
4 changes: 0 additions & 4 deletions src/libasr/codegen/asr_to_llvm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -247,8 +247,6 @@ class ASRToLLVMVisitor : public ASR::BaseVisitor<ASRToLLVMVisitor>

template <typename Cond, typename Body>
void create_loop(char *name, Cond condition, Body loop_body) {
dict_api_lp->set_iterators();
dict_api_sc->set_iterators();

std::string loop_name;
if (name) {
Expand Down Expand Up @@ -286,8 +284,6 @@ class ASRToLLVMVisitor : public ASR::BaseVisitor<ASRToLLVMVisitor>
loop_or_block_end.pop_back();
loop_or_block_end_names.pop_back();
start_new_block(loopend);
dict_api_lp->reset_iterators();
dict_api_sc->reset_iterators();
}

void get_type_debug_info(ASR::ttype_t* t, std::string &type_name,
Expand Down
Loading

0 comments on commit 94fb130

Please sign in to comment.