Skip to content
This repository has been archived by the owner on May 18, 2019. It is now read-only.

Commit

Permalink
[NF] Handle inner/outer in records.
Browse files Browse the repository at this point in the history
Belonging to [master]:
  - #2908
  • Loading branch information
perost authored and OpenModelica-Hudson committed Jan 30, 2019
1 parent 58af603 commit 0f5c4be
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions Compiler/NFFrontEnd/NFRecord.mo
Expand Up @@ -163,22 +163,23 @@ function collectRecordParam
input output list<InstNode> locals;
protected
Component comp;
InstNode comp_node = InstNode.resolveInner(component);
algorithm
if InstNode.isEmpty(component) then
if InstNode.isEmpty(comp_node) then
return;
end if;

if InstNode.isProtected(component) then
locals := component :: locals;
if InstNode.isProtected(comp_node) then
locals := comp_node :: locals;
return;
end if;

comp := InstNode.component(component);
comp := InstNode.component(comp_node);

if Component.isConst(comp) and Component.hasBinding(comp) then
locals := component :: locals;
locals := comp_node :: locals;
else
inputs := component :: inputs;
inputs := comp_node :: inputs;
end if;
end collectRecordParam;

Expand Down

0 comments on commit 0f5c4be

Please sign in to comment.