Skip to content

Commit

Permalink
- if subs of componentreference are stripped do not use the type from…
Browse files Browse the repository at this point in the history
… DAE.CREF to generate a new DAE.CREF from stripped componentreference

git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@7340 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
Jens Frenkel committed Dec 10, 2010
1 parent 765f035 commit ceb627b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Compiler/Static.mo
Expand Up @@ -10936,7 +10936,7 @@ algorithm
(essl as _ :: _) = ComponentReference.crefLastSubs(cr);
cr = ComponentReference.crefStripLastSubs(cr);
exps = makeASUBArrayAdressing2(essl, pre);
crefExp = Expression.makeCrefExp(cr, ty);
crefExp = Expression.crefExp(cr);
exp1 = Expression.makeASUB(crefExp, exps);
then
exp1;
Expand Down

0 comments on commit ceb627b

Please sign in to comment.