Skip to content
This repository was archived by the owner on May 18, 2019. It is now read-only.

Commit c687a77

Browse files
committed
Fix BackendVarTransform.replaceExp
1 parent a6e4095 commit c687a77

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

Compiler/BackEnd/BackendVarTransform.mo

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1045,6 +1045,14 @@ algorithm
10451045
isIterationVar(repl, ident)
10461046
then
10471047
(e,false);
1048+
case ((e as DAE.CREF(componentRef = cr,ty = t)),repl,cond)
1049+
guard replaceExpCond(cond, e)
1050+
equation
1051+
(cr,_) = replaceCrefSubs(cr,repl,cond);
1052+
e1 = getReplacement(repl, cr);
1053+
e2 = avoidDoubleHashLookup(e1,t);
1054+
then
1055+
(e2,true);
10481056
case ((e as DAE.CREF(componentRef = cr)),repl,cond)
10491057
guard replaceExpCond(cond, e)
10501058
equation
@@ -1054,14 +1062,6 @@ algorithm
10541062
(e3,_) = replaceExp(e2,repl,cond);
10551063
then
10561064
(e3,true);
1057-
case ((e as DAE.CREF(componentRef = cr,ty = t)),repl,cond)
1058-
guard replaceExpCond(cond, e)
1059-
equation
1060-
(cr,_) = replaceCrefSubs(cr,repl,cond);
1061-
e1 = getReplacement(repl, cr);
1062-
e2 = avoidDoubleHashLookup(e1,t);
1063-
then
1064-
(e2,true);
10651065
case ((e as DAE.CREF(componentRef = cr,ty = t)),repl,cond)
10661066
guard replaceExpCond(cond, e)
10671067
equation

0 commit comments

Comments
 (0)