Skip to content

Commit 5c7b2f0

Browse files
vrugeOpenModelica-Hudson
authored andcommitted
fixes for tmpVars
don't create a tmpVar for a constValue Belonging to [master]: - OpenModelica/OMCompiler#2340
1 parent cc58a7b commit 5c7b2f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Compiler/BackEnd/ExpressionSolve.mo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1923,7 +1923,7 @@ protected
19231923
BackendDAE.Equation eqn;
19241924
algorithm
19251925
(oExp,_) := ExpressionSimplify.simplify1(iExp);
1926-
if need or not (Expression.isCref(oExp) or Expression.isConstValue(oExp)) then
1926+
if need or not (Expression.isCref(oExp) or Expression.isConst(oExp)) then
19271927
eqn := BackendDAE.SOLVED_EQUATION(cr, oExp, DAE.emptyElementSource, BackendDAE.EQ_ATTR_DEFAULT_UNKNOWN);
19281928
oExp := Expression.crefExp(cr);
19291929
oeqnForNewVars := eqn::ieqnForNewVars;

0 commit comments

Comments
 (0)