Skip to content

Commit

Permalink
- Added missing testcase function1.mo
Browse files Browse the repository at this point in the history
- Do not expand array-assignments (keep non-expanded as it is not needed to scalarize them)


git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@12250 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed Jun 29, 2012
1 parent ef3d89c commit 041f440
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Compiler/FrontEnd/SCodeExpand.mo
Expand Up @@ -915,9 +915,9 @@ algorithm

case (InstTypes.ASSIGN_STMT(lhs = lhs, rhs = rhs), _, _, _)
equation
ty1 = Expression.typeof(lhs);
dims = Types.getDimensions(ty1);
accum_el = expandArray((lhs, rhs), inKind, dims, {} :: inSubscripts, inAccumEl,
/* ty1 = Expression.typeof(lhs);
dims = Types.getDimensions(ty1); */
accum_el = expandArray((lhs, rhs), inKind, {}, {} :: inSubscripts, inAccumEl,
expandAssignment);
then
accum_el;
Expand Down

0 comments on commit 041f440

Please sign in to comment.