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

Commit

Permalink
[BE] fix for inStream
Browse files Browse the repository at this point in the history
Belonging to [master]:
  - #2339
  • Loading branch information
vruge authored and OpenModelica-Hudson committed Apr 4, 2018
1 parent 862a097 commit 73e3f9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Compiler/BackEnd/BackendDAEOptimize.mo
Expand Up @@ -160,7 +160,7 @@ algorithm
(eMin, eMax) := simplifyInStreamWorkExpresion(cr, outVars);
isZero := simplifyInStreamWorkSimplify(eMin, false);
tp := ComponentReference.crefTypeFull(cr);
then if isZero then e else Expression.makePureBuiltinCall("max", {e, expr}, tp);
then if isZero then Expression.createZeroExpression(tp) else Expression.makePureBuiltinCall("max", {e, expr}, tp);

case DAE.CALL(path=Absyn.IDENT("$OMC$PositiveMax"),expLst={e as DAE.UNARY(DAE.UMINUS(tp), DAE.CREF(componentRef=cr)), expr}) algorithm
(eMin, eMax) := simplifyInStreamWorkExpresion(cr, outVars);
Expand Down

0 comments on commit 73e3f9c

Please sign in to comment.