Skip to content

Commit b3127c8

Browse files
committed
DEV: Add an LCOMPILERS_ASSERT to make Array is actually of fixed size when physical type is FixedSizeArray
1 parent 39c0e90 commit b3127c8

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/libasr/codegen/llvm_utils.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1142,6 +1142,7 @@ namespace LCompilers {
11421142
break;
11431143
}
11441144
case ASR::array_physical_typeType::FixedSizeArray: {
1145+
LCOMPILERS_ASSERT(ASRUtils::is_fixed_size_array(v_type->m_dims, v_type->n_dims));
11451146
llvm_type = llvm::ArrayType::get(get_el_type(v_type->m_type, module),
11461147
ASRUtils::get_fixed_size_of_array(
11471148
v_type->m_dims, v_type->n_dims));

0 commit comments

Comments
 (0)