Skip to content

Commit

Permalink
use System.tmpTickIndex as counter
Browse files Browse the repository at this point in the history
  • Loading branch information
vruge authored and OpenModelica-Hudson committed Mar 31, 2016
1 parent e0b38d1 commit a78d6b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Compiler/BackEnd/BackendDAEOptimize.mo
Expand Up @@ -4872,7 +4872,7 @@ algorithm
//terms
(noLoopTerm,_) := ExpressionSimplify.simplify1(Expression.makeSum1(noLoopTerms));
if useTmpVars and simDAE then
(noLoopTerm, outEqns, outVars, outShared, update, para) := BackendEquation.makeTmpEqnForExp(noLoopTerm, tmpVarName + "T", if simDAE then outIndx else -outIndx, outEqns, outVars, outShared);
(noLoopTerm, outEqns, outVars, outShared, update, para) := BackendEquation.makeTmpEqnForExp(noLoopTerm, tmpVarName + "T", System.tmpTickIndex(Global.tmpVariableIndex), outEqns, outVars, outShared);
(outUpdate, ass1, ass2, outIndx, outCompOrder) := simplifyLoopExpHelper(update, outUpdate, para, ass1, ass2, outVars, outEqns, outIndx, ii, outCompOrder);
end if;

Expand Down

0 comments on commit a78d6b3

Please sign in to comment.