Skip to content

Commit

Permalink
- Don't simplify MetaModelica array ASUBs in ExpressionSimplify,
Browse files Browse the repository at this point in the history
  it doesn't know which side an expression is on.


git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@25764 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
perost committed Apr 27, 2015
1 parent 16cfe19 commit e240093
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions Compiler/FrontEnd/ExpressionSimplify.mo
Expand Up @@ -2934,12 +2934,6 @@ algorithm
then
e;

case(DAE.CREF(_,DAE.T_METATYPE(ty=DAE.T_METAARRAY(ty=t))), _, _)
equation
t = Types.simplifyType(t);
exp = Expression.makeBuiltinCall("arrayGet",{ie,inSubExp},t,false);
then exp;

// name subscript
case(DAE.CREF(c,t), _, _)
equation
Expand Down

0 comments on commit e240093

Please sign in to comment.