Skip to content

Commit

Permalink
[NF] Add sanity check to Call.vectorizeCall.
Browse files Browse the repository at this point in the history
Belonging to [master]:
  - OpenModelica/OMCompiler#2408
  • Loading branch information
perost authored and OpenModelica-Hudson committed May 4, 2018
1 parent cd7b28a commit bc4b3e1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Compiler/NFFrontEnd/NFCall.mo
Expand Up @@ -674,6 +674,9 @@ uniontype Call
i := 1;

for dim in vect_dims loop
Error.assertion(Dimension.isKnown(dim), getInstanceName() +
" got unknown dimension for vectorized call", info);

// Create the range on which we will iterate to vectorize.
ty := Type.ARRAY(Type.INTEGER(), {dim});
exp := Expression.RANGE(ty, Expression.INTEGER(1), NONE(), Expression.INTEGER(Dimension.size(dim)));
Expand Down

0 comments on commit bc4b3e1

Please sign in to comment.