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

Commit 453670f

Browse files
perostOpenModelica-Hudson
authored andcommitted
Fix #4524 for Cpp and XML codegen too.
1 parent 93a4aed commit 453670f

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

Compiler/Template/CodegenCppCommon.tpl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2209,9 +2209,9 @@ template expTypeFromExpFlag(Exp exp, Integer flag)
22092209
case c as CODE(__) then expTypeFlag(c.ty, flag)
22102210
case ASUB(__) then expTypeFromExpFlag(exp, flag)
22112211
case REDUCTION(__) then expTypeFlag(typeof(exp), flag)
2212-
case CONS(__)
2213-
case LIST(__)
2214-
case SIZE(__) then expTypeFlag(typeof(exp), flag)
2212+
case e as CONS(__)
2213+
case e as LIST(__)
2214+
case e as SIZE(__) then expTypeFlag(typeof(e), flag)
22152215

22162216
case META_TUPLE(__)
22172217
case META_OPTION(__)

Compiler/Template/CodegenXML.tpl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3887,10 +3887,10 @@ template expTypeFromExpFlagXml(Exp exp, Integer flag)
38873887
case c as CODE(__) then expTypeFlagXml(c.ty, flag)
38883888
case c as ASUB(__) then expTypeFlagXml(typeof(c), flag)
38893889
case REDUCTION(__) then expTypeFlagXml(typeof(exp), flag)
3890-
case BOX(__)
3891-
case CONS(__)
3892-
case LIST(__)
3893-
case SIZE(__) then expTypeFlagXml(typeof(exp), flag)
3890+
case e as BOX(__)
3891+
case e as CONS(__)
3892+
case e as LIST(__)
3893+
case e as SIZE(__) then expTypeFlagXml(typeof(e), flag)
38943894

38953895
case META_TUPLE(__)
38963896
case META_OPTION(__)

0 commit comments

Comments
 (0)