Skip to content
This repository has been archived by the owner on May 18, 2019. It is now read-only.

Commit

Permalink
fixed inline
Browse files Browse the repository at this point in the history
- use VariableReplacements

refs ticket:4841

Belonging to [master]:
  - #2314
  - OpenModelica/OpenModelica-testsuite#895
  • Loading branch information
vruge authored and OpenModelica-Hudson committed Mar 25, 2018
1 parent f3d84c6 commit 90d01e9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Compiler/FrontEnd/Inline.mo
Expand Up @@ -1136,8 +1136,7 @@ algorithm
equation
// use type of cref, since var type is different
// and has no hint on array or record type
tp = ComponentReference.crefTypeFull(cr);
oBody = listAppend(oBody, {DAE.STMT_ASSIGN(exp1 = Expression.crefExp(cr), exp = exp, source=DAE.emptyElementSource, type_=tp)});
oRepl = addOptBindingReplacements(cr,binding,oRepl);
oOutputs = cr :: oOutputs;
then ();

Expand Down

0 comments on commit 90d01e9

Please sign in to comment.