Skip to content

Commit

Permalink
Use the LHS cref generation functions.
Browse files Browse the repository at this point in the history
  - This was using the RHS generation function by mistake.
  • Loading branch information
mahge authored and sjoelund committed Jun 21, 2021
1 parent fd77dd7 commit e117a40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OMCompiler/Compiler/Template/CodegenCFunctions.tpl
Expand Up @@ -6984,7 +6984,7 @@ template daeExpAsub(Exp inExp, Context context, Text &preExp,
error(sourceInfo(),'ASUB_EASY_CASE type:<%unparseType(t)%> range:<%ExpressionDumpTpl.dumpExp(exp,"\"")%> index:<%ExpressionDumpTpl.dumpExp(idx,"\"")%>')
case ASUB(exp=ecr as CREF(__), sub=subs) then
daeExpCrefRhs(buildCrefExpFromAsub(ecr, subs), context, &preExp, &varDecls, &auxFunction)
daeExpCrefLhs(buildCrefExpFromAsub(ecr, subs), context, &preExp, &varDecls, &auxFunction, false)
case ASUB(exp=e, sub=indexes) then
let exp = daeExp(e, context, &preExp, &varDecls, &auxFunction)
Expand Down

0 comments on commit e117a40

Please sign in to comment.