Skip to content

Commit

Permalink
[CodeGenC] skip cases independent of passing guard
Browse files Browse the repository at this point in the history
Belonging to [master]:
  - OpenModelica/OMCompiler#2031
  • Loading branch information
hkiel authored and OpenModelica-Hudson committed Nov 17, 2017
1 parent 0cd3268 commit 37ec0ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Compiler/Template/CodegenCFunctions.tpl
Expand Up @@ -6863,11 +6863,11 @@ template daeExpMatchCases(list<MatchCase> cases, list<Exp> tupleAssignExps, DAE.
<%patternMatching%>
<%assignments%>
<%&preGuardCheck%>
<%guardCheck%>
<% match c.jump
case 0 then "/* Pattern matching succeeded */"
else '<%ix%> += <%c.jump%>; /* Pattern matching succeeded; we may skip some cases if we fail */'
%>
<%guardCheck%>
<%stmts%>
<%modelicaLine(c.resultInfo)%>
<% if c.result then '<%preRes%><%caseRes%>' else '<%generateThrow()%>;<%\n%>' %>
Expand Down

0 comments on commit 37ec0ba

Please sign in to comment.