Skip to content

Commit b3c0ea4

Browse files
committed
Remove redundant reset of iterators
1 parent 9559ab4 commit b3c0ea4

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/libasr/codegen/llvm_utils.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -668,9 +668,6 @@ namespace LFortran {
668668
LLVM::CreateStore(*builder,
669669
llvm::ConstantInt::get(llvm::Type::getInt1Ty(context), llvm::APInt(1, 1)),
670670
llvm_utils->create_ptr_gep(key_mask, pos));
671-
if( !are_iterators_set ) {
672-
pos_ptr = nullptr;
673-
}
674671
}
675672

676673
llvm::Value* LLVMDict::linear_probing_for_read(llvm::Value* dict, llvm::Value* key_hash,
@@ -683,9 +680,6 @@ namespace LFortran {
683680
linear_probing(capacity, key_hash, key, key_list, key_mask, module, key_asr_type);
684681
llvm::Value* pos = LLVM::CreateLoad(*builder, pos_ptr);
685682
llvm::Value* item = llvm_utils->list_api->read_item(value_list, pos, true, false);
686-
if( !are_iterators_set ) {
687-
pos_ptr = nullptr;
688-
}
689683
return item;
690684
}
691685

0 commit comments

Comments
 (0)