Skip to content

Commit

Permalink
- Changed simplification of scalar-array operations with an empty arr…
Browse files Browse the repository at this point in the history
…ay to

  return an empty array, instead of an array with one element.


git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@11674 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
perost committed Apr 5, 2012
1 parent cf18e07 commit fedb0ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Compiler/FrontEnd/ExpressionSimplify.mo
Expand Up @@ -1630,7 +1630,7 @@ algorithm
Integer dims;

// scalar operator array
case (s1,op,DAE.ARRAY(ty = tp,scalar = sc,array = {})) then DAE.ARRAY(tp,sc,{DAE.BINARY(s1,op,DAE.ICONST(0))});
case (_, _, DAE.ARRAY(array = {})) then inExp3;
case (s1,op,DAE.ARRAY(ty = tp,scalar = sc,array = {e1})) then DAE.ARRAY(tp,sc,{DAE.BINARY(s1,op,e1)});

case (s1,op,DAE.ARRAY(ty = tp,scalar = sc,array = (e1 :: es)))
Expand Down

0 comments on commit fedb0ed

Please sign in to comment.