Skip to content

Commit

Permalink
- Also remove the preExp
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@15248 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed Feb 20, 2013
1 parent 56c25a3 commit b9d0391
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Compiler/Template/CodegenC.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -6905,10 +6905,12 @@ template daeExpRelation(Exp exp, Context context, Text &preExp /*BUFP*/,
match exp
case rel as RELATION(__) then
let &varDecls2 = buffer ""
let simRel = daeExpRelationSim(rel, context, &preExp /*BUFC*/, &varDecls2 /*BUFD*/)
let &preExp2 = buffer ""
let simRel = daeExpRelationSim(rel, context, &preExp2 /*BUFC*/, &varDecls2 /*BUFD*/)
if simRel then
/* Don't add the allocated temp-var unless it is used */
let &varDecls += varDecls2
let &preExp += preExp2
simRel
else
let e1 = daeExp(rel.exp1, context, &preExp /*BUFC*/, &varDecls /*BUFD*/)
Expand Down

0 comments on commit b9d0391

Please sign in to comment.