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

Commit 92921a4

Browse files
Willi BraunOpenModelica-Hudson
authored andcommitted
[Backend] fix functions with record argument
Belonging to [master]: - #2192
1 parent bf59c08 commit 92921a4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Compiler/BackEnd/Differentiate.mo

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1379,7 +1379,9 @@ algorithm
13791379
then
13801380
(zero, inFunctionTree);
13811381

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

0 commit comments

Comments
 (0)