Skip to content

Commit

Permalink
[CG] stip subs before copy array
Browse files Browse the repository at this point in the history
 - fixing ticket:5114

Belonging to [master]:
  - OpenModelica/OMCompiler#2678
  - OpenModelica/OpenModelica-testsuite#1041
  • Loading branch information
Willi Braun authored and OpenModelica-Hudson committed Sep 26, 2018
1 parent b860115 commit d4d6059
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Compiler/Template/CodegenCFunctions.tpl
Expand Up @@ -2728,7 +2728,7 @@ template copyArrayData(DAE.Type ty, String exp, DAE.ComponentRef cr, Context con
Text &preExp, Text &varDecls, Text &auxFunction)
::=
let type = expTypeArray(ty)
let cref = contextArrayCref(cr, context)
let cref = contextArrayCref(crefStripSubs(cr), context)
match context
case FUNCTION_CONTEXT(__) then
'copy_<%type%><%if dimensionsKnown(ty) then "_data" /* else we make allocate and copy data */%>(<%exp%>, &<%cref%>);'
Expand Down

0 comments on commit d4d6059

Please sign in to comment.