diff --git a/src/libasr/codegen/llvm_utils.cpp b/src/libasr/codegen/llvm_utils.cpp index 9f20c98f78..a564ceedee 100644 --- a/src/libasr/codegen/llvm_utils.cpp +++ b/src/libasr/codegen/llvm_utils.cpp @@ -1945,6 +1945,11 @@ namespace LCompilers { dict_api->dict_deepcopy(src, dest, dict_type, module, name2memidx); break ; } + case ASR::ttypeType::Set: { + ASR::Set_t *set_type = ASR::down_cast(asr_type); + set_api->set_deepcopy(src, dest, set_type, module, name2memidx); + break; + } case ASR::ttypeType::StructType: { ASR::StructType_t* struct_t = ASR::down_cast(asr_type); ASR::Struct_t* struct_type_t = ASR::down_cast( diff --git a/src/libasr/codegen/llvm_utils.h b/src/libasr/codegen/llvm_utils.h index 8e24438100..83baa3984b 100644 --- a/src/libasr/codegen/llvm_utils.h +++ b/src/libasr/codegen/llvm_utils.h @@ -182,7 +182,8 @@ namespace LCompilers { ASR::is_a(*asr_type) || ASR::is_a(*asr_type) || ASR::is_a(*asr_type)|| - ASR::is_a(*asr_type); + ASR::is_a(*asr_type) || + ASR::is_a(*asr_type); } static inline bool is_llvm_pointer(const ASR::ttype_t& asr_type) { return ( ASR::is_a(asr_type) ||