Skip to content

Commit 7b83fd4

Browse files
committed
- Moved elabType of "complex" types that have a regular base type (no longer uses a slot in the memory)
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@7742 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
1 parent 0e97306 commit 7b83fd4

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

Compiler/FrontEnd/Types.mo

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3616,6 +3616,7 @@ algorithm
36163616
TypeMemoryEntryListArray tyMem;
36173617
TypeMemoryEntryList tyLst;
36183618
DAE.ExpType expTy;
3619+
Type t;
36193620
TType tt;
36203621
Integer indexBasedOnValueConstructor;
36213622
String str;
@@ -3634,6 +3635,7 @@ algorithm
36343635
case ((DAE.T_META_ARRAY(_),_)) then etMetaType;
36353636
case ((DAE.T_METAOPTION(_),_)) then etMetaType;
36363637
case ((DAE.T_METATUPLE(_),_)) then etMetaType;
3638+
case ((DAE.T_COMPLEX(complexVarLst={},complexTypeOption=SOME(t)),_)) then elabType(t);
36373639

36383640
// see if we have it in memory
36393641
case (inType as (tt, _))
@@ -3704,13 +3706,6 @@ algorithm
37043706
then
37053707
DAE.ET_ARRAY(t_1,dims);
37063708

3707-
case ( (DAE.T_COMPLEX(CIS,{},SOME(t),_),_))
3708-
equation
3709-
// name = ClassInf.getStateName(CIS);
3710-
// print("CS: " +& Absyn.pathString(name) +& "\n");
3711-
then
3712-
elabType(t);
3713-
37143709
case ((DAE.T_COMPLEX(CIS,tcvl,NONE(),_),_))
37153710
equation
37163711
name = ClassInf.getStateName(CIS);

0 commit comments

Comments
 (0)