Skip to content

Commit f525230

Browse files
committed
Clear typecode2dicttype in LLVMDict destructor
1 parent 74bdd1d commit f525230

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/libasr/codegen/llvm_utils.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1049,7 +1049,9 @@ namespace LFortran {
10491049
return LLVM::CreateLoad(*builder, get_pointer_to_occupancy(dict));
10501050
}
10511051

1052-
LLVMDict::~LLVMDict() {}
1052+
LLVMDict::~LLVMDict() {
1053+
typecode2dicttype.clear();
1054+
}
10531055

10541056
LLVMDictOptimizedLinearProbing::~LLVMDictOptimizedLinearProbing() {}
10551057

0 commit comments

Comments
 (0)