Skip to content

Commit

Permalink
- handle DAE.ENUM_LITERAL in several places where it was missing.
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@8692 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
adrpo committed Apr 18, 2011
1 parent c3e989f commit 5bdbb7e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Compiler/BackEnd/SimCode.mo
Expand Up @@ -1449,6 +1449,7 @@ algorithm
case DAE.ICONST(_) then ();
case DAE.BCONST(_) then ();
case DAE.RCONST(_) then ();
case DAE.ENUM_LITERAL(index = _) then ();
case DAE.LIST(valList={}) then ();
case DAE.META_OPTION(NONE()) then ();
case DAE.SHARED_LITERAL(index=_) then ();
Expand All @@ -1468,6 +1469,7 @@ algorithm
case DAE.ICONST(_) then ();
case DAE.RCONST(_) then ();
case DAE.BCONST(_) then ();
case DAE.ENUM_LITERAL(index = _) then ();
case DAE.META_OPTION(NONE()) then ();
case DAE.META_OPTION(SOME(exp)) equation isLiteralExp(exp); then ();
case DAE.BOX(exp) equation isLiteralExp(exp); then ();
Expand Down Expand Up @@ -8952,6 +8954,8 @@ algorithm
case (SOME(DAE.ICONST(_)),_) then ();
case (SOME(DAE.SCONST(_)),_) then ();
case (SOME(DAE.BCONST(_)),_) then ();
// adrpo, 2011-04-18 -> enumeration literal is OK also
case (SOME(DAE.ENUM_LITERAL(index = _)),_) then ();
case (SOME(exp),DAE.SOURCE(info=info))
equation
str = "Initial value of unknown type: " +& ExpressionDump.printExpStr(exp);
Expand Down

0 comments on commit 5bdbb7e

Please sign in to comment.