Skip to content

Commit

Permalink
throw warning when SimCodeUtil.makeSES_SIMPLE_ASSIGN fails
Browse files Browse the repository at this point in the history
  • Loading branch information
vwaurich authored and OpenModelica-Hudson committed Nov 7, 2017
1 parent a1aa138 commit 1b186d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Compiler/SimCode/SimCodeUtil.mo
Expand Up @@ -3461,8 +3461,8 @@ algorithm
then (cr,Expression.negate(e));
else
algorithm
msg := "SimCodeUtil.makeSES_SIMPLE_ASSIGN failed";//SimCodeUtil.makeSES_SIMPLE_ASSIGN failed for (" + ExpressionDump.printExpStr(Util.tuple21(inTpl))+", "+ExpressionDump.printExpStr(Util.tuple22(inTpl))+"\n");
Error.addInternalError(msg, sourceInfo());
msg := "SimCodeUtil.makeSES_SIMPLE_ASSIGN failed for: " + ExpressionDump.printExpStr(Util.tuple21(inTpl))+" = "+ExpressionDump.printExpStr(Util.tuple22(inTpl))+"\n";
Error.addCompilerWarning(msg);
then fail();
end match;
outSimEqn := SimCode.SES_SIMPLE_ASSIGN(iuniqueEqIndex, cr, e, source);
Expand Down

0 comments on commit 1b186d3

Please sign in to comment.