Skip to content

Commit

Permalink
Add missing fail calls
Browse files Browse the repository at this point in the history
  • Loading branch information
sjoelund committed Jun 26, 2015
1 parent ac6e440 commit 3aa480b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Compiler/SimCode/SimCodeUtil.mo
Expand Up @@ -12924,6 +12924,7 @@ algorithm
varIdx = intMul(varIdx,-1);
else
Error.addMessage(Error.INTERNAL_ERROR, {"Negated alias to unknown variable given."});
fail();
end if;
then (iCurrentVarIndices, varIdx);
case(SimCodeVar.SIMVAR(name=name, aliasvar=SimCodeVar.ALIAS(varName)),_,_)
Expand All @@ -12932,6 +12933,7 @@ algorithm
varIdx::_ = BaseHashTable.get(varName, iVarToIndexMapping);
else
Error.addMessage(Error.INTERNAL_ERROR, {"Alias to unknown variable given."});
fail();
end if;
then (iCurrentVarIndices, varIdx);
end match;
Expand Down

0 comments on commit 3aa480b

Please sign in to comment.