Skip to content

Commit

Permalink
- do not throw information away
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@13859 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
Jens Frenkel committed Nov 10, 2012
1 parent a936826 commit 09dcbcf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Compiler/FrontEnd/DAEUtil.mo
Expand Up @@ -2288,6 +2288,7 @@ algorithm
Integer i;
Option<DAE.Exp> eopt_1,eopt;
DAE.CallAttributes attr;
Option<tuple<DAE.Exp,Integer,Integer>> optionExpisASUB;

case (DAE.CREF(componentRef = cr,ty = t))
equation
Expand Down Expand Up @@ -2317,12 +2318,12 @@ algorithm
e_1 = toModelicaFormExp(e);
then
DAE.LUNARY(op,e_1);
case (DAE.RELATION(exp1 = e1,operator = op,exp2 = e2))
case (DAE.RELATION(exp1 = e1,operator = op,exp2 = e2,index=i,optionExpisASUB=optionExpisASUB))
equation
e1_1 = toModelicaFormExp(e1);
e2_1 = toModelicaFormExp(e2);
then
DAE.RELATION(e1_1,op,e2_1,-1,NONE());
DAE.RELATION(e1_1,op,e2_1,i,optionExpisASUB);
case (DAE.IFEXP(expCond = e1,expThen = e2,expElse = e3))
equation
e1_1 = toModelicaFormExp(e1);
Expand Down

0 comments on commit 09dcbcf

Please sign in to comment.