Skip to content

Commit

Permalink
- Fixed record constructors; updated testcases that now show more fun…
Browse files Browse the repository at this point in the history
…ctions than previously

git-svn-id: https://openmodelica.org/svn/OpenModelica/branches/sjoelund-functiontree@6303 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed Oct 8, 2010
1 parent b7bae55 commit 0d9fbdf
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Compiler/DAELow.mo
Expand Up @@ -5090,7 +5090,7 @@ algorithm
then
fail();

case ((elementLst = (ddl :: xs)),functionTree,_,vars,knvars,extVars,_)
case (ddl::xs,functionTree,_,vars,knvars,extVars,_)
local DAE.Element ddl; String s3;
equation
// show only on failtrace!
Expand Down
2 changes: 1 addition & 1 deletion Compiler/DAEUtil.mo
Expand Up @@ -5227,7 +5227,7 @@ algorithm
equation
true = isExtFunction(func);
tree = avlTreeAdd(tree,functionName(func),SOME(func));
then addDaeFunction(funcs,tree);
then addDaeExtFunction(funcs,tree);

case (func::funcs,tree) then addDaeExtFunction(funcs,tree);

Expand Down
5 changes: 2 additions & 3 deletions Compiler/Lookup.mo
Expand Up @@ -1909,9 +1909,8 @@ protected
Env.Env env_1;
algorithm
(outCache,_,cdef) := buildRecordConstructorClass(cache,env,cdef);
(outCache,outEnv,_) := Inst.implicitFunctionInstantiation(
outCache,env,InnerOuter.emptyInstHierarchy,
DAE.NOMOD(), Prefix.NOPRE(), Connect.emptySet, cdef, {});
(outCache,outEnv,_) := Inst.implicitFunctionTypeInstantiation(
outCache,env,InnerOuter.emptyInstHierarchy, cdef);
name := SCode.className(cdef);
(outCache,ftype,_) := lookupTypeInEnv(outCache,outEnv,Absyn.IDENT(name));
end buildRecordType;
Expand Down

0 comments on commit 0d9fbdf

Please sign in to comment.