Skip to content

Commit

Permalink
Fix VarKind of previous after commit 69f1837
Browse files Browse the repository at this point in the history
  • Loading branch information
rfranke authored and OpenModelica-Hudson committed Mar 6, 2016
1 parent 1845ffa commit e2f045a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Compiler/BackEnd/Initialization.mo
Expand Up @@ -2313,8 +2313,9 @@ algorithm
Boolean previousUsed;
case (var as BackendDAE.VAR(varName=cr, varType=ty)) equation
previousUsed = BaseHashSet.has(cr, clkHS);
previousCR = ComponentReference.crefPrefixPrevious(cr); // cr => $CLKPRRE.cr
previousCR = ComponentReference.crefPrefixPrevious(cr); // cr => $CLKPRE.cr
previousVar = BackendVariable.copyVarNewName(previousCR, var);
previousVar = BackendVariable.setVarKind(previousVar, BackendDAE.VARIABLE());
crExp = Expression.crefExp(cr);
previousExp = Expression.crefExp(previousCR);
startExp = BackendVariable.varStartValue(var);
Expand Down

0 comments on commit e2f045a

Please sign in to comment.