Skip to content

Commit

Permalink
- Fixes bug in codegen of record constructors after PA's changes.
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@4887 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed Jan 29, 2010
1 parent 48ca649 commit 23ea833
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Compiler/Codegen.mo
Expand Up @@ -1455,9 +1455,10 @@ algorithm
list<String> res,strs,rest_strs,decl_strs,rt,rt_1,rt_2,record_definition,fieldNames;
case ((DAE.T_COMPLEX(complexClassType = ClassInf.RECORD(path = name), complexVarLst = varlst),SOME(path)),rt)
equation
failure(_ = Util.listGetMember(Absyn.pathString(name),rt));
s1 = generateFunctionName(name);
failure(_ = Util.listGetMember(s1,rt));

first_str = "struct "+&generateFunctionName(name)+&" {";
first_str = "struct "+&s1+&" {";
decl_strs = Util.listMap(varlst, generateVarDeclaration);
last_str = "};";
s1 = generateFunctionName(name);
Expand Down

0 comments on commit 23ea833

Please sign in to comment.