Skip to content

Commit

Permalink
- extended Expression.isConst for records
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@19600 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
Volker Waurich committed Mar 17, 2014
1 parent 2bc4975 commit 447c8a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Compiler/FrontEnd/Expression.mo
Expand Up @@ -6598,9 +6598,9 @@ algorithm

case (DAE.SIZE(exp=e1,sz=SOME(e2)),_) then isConstWork(e1,isConstWork(e2,true));

//case (DAE.CALL(path=_,expLst=ae,attr=_),_) then isConstWorkList(ae,true);
case (DAE.CALL(path=_,expLst=ae,attr=DAE.CALL_ATTR(ty=DAE.T_COMPLEX(complexClassType=ClassInf.RECORD(path=_)), tuple_=_, builtin=_, isImpure=false, inlineType=_,tailCall=_)),_) then isConstWorkList(ae,true);

//case (DAE.RECORD(path=_,exps=ae,ty=_),_) then isConstWorkList(ae,true);
case (DAE.RECORD(path=_,exps=ae,ty=_),_) then isConstWorkList(ae,true);

/*TODO:Make this work for multiple iters, guard exps*/
case (DAE.REDUCTION(expr=e1,iterators={DAE.REDUCTIONITER(exp=e2)}),_)
Expand Down

0 comments on commit 447c8a9

Please sign in to comment.