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

Commit

Permalink
NFFrontEnd small fix for array expressions ($array)
Browse files Browse the repository at this point in the history
Belonging to [master]:
  - #1991
  • Loading branch information
mahge authored and OpenModelica-Hudson committed Nov 7, 2017
1 parent 1e05283 commit 42bc0b1
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions Compiler/NFFrontEnd/NFCall.mo
Original file line number Diff line number Diff line change
Expand Up @@ -221,10 +221,17 @@ uniontype Call
list<InstNode> iters;
ComponentRef arr_fn_ref;
Call call, arr_call;
Absyn.ComponentRef aby_fn_ref;
algorithm
(fn_ref, fn_node, _) := Function.instFunc(functionName,scope,info);
aby_fn_ref := match functionName
case Absyn.CREF_IDENT("$array",{}) then Absyn.CREF_IDENT("array",{});
else functionName;
end match;

(fn_ref, fn_node, _) := Function.instFunc(aby_fn_ref,scope,info);
(exp, iters) := instIteratorCallArgs(functionArgs, scope, info);
call := match functionName

call := match aby_fn_ref

case Absyn.CREF_IDENT("min",_) algorithm
(arr_fn_ref, _) := Function.instFunc(Absyn.CREF_IDENT("array", {}),scope,info);
Expand Down

0 comments on commit 42bc0b1

Please sign in to comment.