Skip to content

Commit 9f5d0a8

Browse files
committed
Fix arguments tuple type
1 parent 254efcf commit 9f5d0a8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/libasr/codegen/asr_to_llvm.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2984,7 +2984,8 @@ class ASRToLLVMVisitor : public ASR::BaseVisitor<ASRToLLVMVisitor>
29842984
ASR::storage_typeType local_m_storage = ASR::storage_typeType::Default;
29852985
llvm_el_types.push_back(get_arg_type_from_ttype_t(asr_tuple->m_type[i], m_abi,
29862986
arg_m_abi, local_m_storage, arg_m_value_attr, local_n_dims,
2987-
local_a_kind, is_local_array_type, ASRUtils::intent_local));
2987+
local_a_kind, is_local_array_type,
2988+
ASRUtils::intent_local)->getPointerElementType());
29882989
}
29892990
type = tuple_api->get_tuple_type(type_code, llvm_el_types)->getPointerTo();
29902991
break;

0 commit comments

Comments
 (0)