Skip to content

Commit

Permalink
[Backend] fix functions with record argument
Browse files Browse the repository at this point in the history
Belonging to [master]:
  - OpenModelica/OMCompiler#2192
  • Loading branch information
Willi Braun authored and OpenModelica-Hudson committed Feb 13, 2018
1 parent bf59c08 commit 92921a4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Compiler/BackEnd/Differentiate.mo
Expand Up @@ -1379,7 +1379,9 @@ algorithm
then
(zero, inFunctionTree);

/* Exclude records here, they are handled component-wise in differentiateFunctionCall */
case (e as DAE.CALL(attr=DAE.CALL_ATTR(ty=tp)), DAE.CREF_IDENT(ident="$"), _, _, _)
guard ( not Expression.isRecordCall(e, inFunctionTree) )
equation
(zero,_) = Expression.makeZeroExpression(Expression.arrayDimension(tp));
then
Expand Down

0 comments on commit 92921a4

Please sign in to comment.