Skip to content

Commit

Permalink
- ndims() now always returns constant variability (as it always retur…
Browse files Browse the repository at this point in the history
…ns an integer literal)

git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@9706 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed Aug 29, 2011
1 parent 48a0d39 commit 36e007d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Compiler/FrontEnd/Static.mo
Expand Up @@ -3221,12 +3221,10 @@ algorithm
case (cache,env,{arraycr},_,impl,pre,info)
equation
(cache,arraycrefe,DAE.PROP(arrtp,_),_) = elabExp(cache,env, arraycr, impl,NONE(),true,pre,info);
c2 = Types.dimensionsKnown(arrtp);
c = Types.boolConst(c2);
nd = Types.numberOfDimensions(arrtp);
exp = DAE.ICONST(nd);
then
(cache,exp,DAE.PROP(DAE.T_INTEGER_DEFAULT,c));
(cache,exp,DAE.PROP(DAE.T_INTEGER_DEFAULT,DAE.C_CONST()));

case (cache,env,expl,_,impl,pre,info)
equation
Expand Down

0 comments on commit 36e007d

Please sign in to comment.