Skip to content

Commit

Permalink
- bugfix for r7745
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@7748 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
Jens Frenkel committed Jan 22, 2011
1 parent 31a72ac commit de97145
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Compiler/BackEnd/BackendDAEOptimize.mo
Expand Up @@ -1007,12 +1007,12 @@ algorithm
BackendDAE.Variables vars,knvars;
DAE.ComponentRef cr;

case((e as DAE.CREF(DAE.CREF_IDENT(ident = "time",subscriptLst = {}),_), (_,vars,knvars))) then ((e,false,(true,vars,knvars)));
case((e as DAE.CREF(componentRef = cr),(_,vars,knvars)))
equation
b = BackendVariable.isTopLevelInputOrOutput(cr,vars,knvars);
then
((e,not b,(b,vars,knvars)));
case((e as DAE.CREF(DAE.CREF_IDENT(ident = "time",subscriptLst = {}),_), (_,vars,knvars))) then ((e,false,(true,vars,knvars)));
case((e as DAE.CALL(path = Absyn.IDENT(name = "sample"), expLst = {_,_}), (_,vars,knvars))) then ((e,false,(true,vars,knvars) ));
case((e as DAE.CALL(path = Absyn.IDENT(name = "pre"), expLst = {_}), (_,vars,knvars))) then ((e,false,(true,vars,knvars) ));
case((e,(b,vars,knvars))) then ((e,not b,(b,vars,knvars)));
Expand Down

0 comments on commit de97145

Please sign in to comment.