Skip to content

Commit 94fb130

Browse files
authored
Add get_builder0 macro to declare auxiliary variables at entry point of functions (#2205)
1 parent c1a613b commit 94fb130

File tree

3 files changed

+113
-283
lines changed

3 files changed

+113
-283
lines changed

src/libasr/codegen/asr_to_llvm.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -247,8 +247,6 @@ class ASRToLLVMVisitor : public ASR::BaseVisitor<ASRToLLVMVisitor>
247247

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

253251
std::string loop_name;
254252
if (name) {
@@ -286,8 +284,6 @@ class ASRToLLVMVisitor : public ASR::BaseVisitor<ASRToLLVMVisitor>
286284
loop_or_block_end.pop_back();
287285
loop_or_block_end_names.pop_back();
288286
start_new_block(loopend);
289-
dict_api_lp->reset_iterators();
290-
dict_api_sc->reset_iterators();
291287
}
292288

293289
void get_type_debug_info(ASR::ttype_t* t, std::string &type_name,

0 commit comments

Comments
 (0)