Skip to content
This repository was archived by the owner on May 18, 2019. It is now read-only.

Commit bc4b3e1

Browse files
perostOpenModelica-Hudson
authored andcommitted
[NF] Add sanity check to Call.vectorizeCall.
Belonging to [master]: - #2408
1 parent cd7b28a commit bc4b3e1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Compiler/NFFrontEnd/NFCall.mo

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -674,6 +674,9 @@ uniontype Call
674674
i := 1;
675675

676676
for dim in vect_dims loop
677+
Error.assertion(Dimension.isKnown(dim), getInstanceName() +
678+
" got unknown dimension for vectorized call", info);
679+
677680
// Create the range on which we will iterate to vectorize.
678681
ty := Type.ARRAY(Type.INTEGER(), {dim});
679682
exp := Expression.RANGE(ty, Expression.INTEGER(1), NONE(), Expression.INTEGER(Dimension.size(dim)));

0 commit comments

Comments
 (0)