Skip to content

Commit

Permalink
small cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
vwaurich committed Oct 24, 2016
1 parent 60e1286 commit 3775ade
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions Compiler/BackEnd/BackendEquation.mo
Expand Up @@ -148,7 +148,7 @@ algorithm
try
BackendDAE.WHEN_STMTS(whenStmtLst={BackendDAE.ASSIGN(left=DAE.CREF(componentRef = outComponentRef), right=outExp)}) := inWhenEquation;
else
print("getWhenEQuationExpr failed\n");
Error.addInternalError("BackendEquation.getWhenEquationExpr failed\n", sourceInfo());
end try;
end getWhenEquationExpr;

Expand Down Expand Up @@ -894,15 +894,7 @@ algorithm
case (BackendDAE.ASSIGN(left = e1, right = e2, source = source)::rest)
equation
tp = Expression.typeof(e2);
//e1 = Expression.makeCrefExp(cr, tp);
(e1, extArg) = inFunc(e1, inTypeA);
/*
if Expression.isCref(e1) then
DAE.CREF(cr1, _) = e1;
else
cr1=cr;
end if;
*/
(e2, extArg) = inFunc(e2, extArg);
(outWhenOps, extArg) = traverseExpsOfWhenOps(rest, inFunc, extArg, BackendDAE.ASSIGN(e1, e2, source)::inAccum);
then (outWhenOps, extArg);
Expand Down Expand Up @@ -1035,7 +1027,6 @@ algorithm
case (BackendDAE.ASSIGN(left = e1, right = e2)::rest)
equation
tp = Expression.typeof(e2);
//e1 = Expression.makeCrefExp(cr, tp);
if inCont then
(_, b, extArg) = inFunc(e1, inTypeA);
end if;
Expand Down

0 comments on commit 3775ade

Please sign in to comment.