Skip to content

Commit

Permalink
- listFold instead of listReduce when simplifying calls.
Browse files Browse the repository at this point in the history
  + Works when using an empty list of arguments.


git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@5152 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed Mar 16, 2010
1 parent 6f7745c commit 4059df1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Compiler/Exp.mo
Expand Up @@ -1437,7 +1437,7 @@ algorithm
Absyn.Path fn;
equation
expl = Util.listMap(expl,simplify1);
true = Util.listReduce(Util.listMap(expl,isConst),boolAnd);
true = Util.listFold(Util.listMap(expl,isConst),boolAnd,true);
e2 = simplifyBuiltinConstantCalls(DAE.CALL(fn,expl,tpl,builtin,tp,inline));
then e2;

Expand Down

0 comments on commit 4059df1

Please sign in to comment.