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@7341 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
Jens Frenkel committed Dec 10, 2010
1 parent ceb627b commit 08a52f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Compiler/BackendDAEUtil.mo
Expand Up @@ -1360,7 +1360,7 @@ algorithm
case (DAE.ASUB(exp = DAE.ARRAY(array = (DAE.CREF(componentRef = cr, ty = ty) :: _)), sub = subs))
equation
cr = ComponentReference.crefStripLastSubs(cr);
e = Expression.makeCrefExp(cr, ty);
e = Expression.crefExp(cr);
then
// adrpo: TODO! FIXME! check if this is TYPE correct!
// shouldn't we change the type using the subs?
Expand All @@ -1369,7 +1369,7 @@ algorithm
case (DAE.ASUB(exp = DAE.MATRIX(scalar = (((DAE.CREF(componentRef = cr, ty = ty), _) :: _) :: _)), sub = subs))
equation
cr = ComponentReference.crefStripLastSubs(cr);
e = Expression.makeCrefExp(cr, ty);
e = Expression.crefExp(cr);
then
// adrpo: TODO! FIXME! check if this is TYPE correct!
// shouldn't we change the type using the subs?
Expand Down

0 comments on commit 08a52f8

Please sign in to comment.