Skip to content

Commit

Permalink
Fix petrol test
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@19812 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed Mar 27, 2014
1 parent 13f3f2c commit 326a434
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Compiler/FrontEnd/Static.mo
Expand Up @@ -12229,6 +12229,8 @@ algorithm
equation
(e1,_) = Types.matchType(e1, t1, DAE.T_BOOL_DEFAULT, true);
(t2_1,t3_1) = Types.ifExpMakeDimsUnknown(t2,t3);
t2_1 = Types.getUniontypeIfMetarecordReplaceAllSubtypes(t2_1);
t3_1 = Types.getUniontypeIfMetarecordReplaceAllSubtypes(t3_1);
(e2_1,t2_1) = Types.matchType(e2, t2_1, t3_1, true);
c = constIfexp(e1, c1, c2, c3) "then-part type converted to match else-part" ;
(cache,exp,ty) = cevalIfexpIfConstant(cache,env, e1, e2_1, e3, c1, t2, t3, t2_1, impl, st, inInfo);
Expand All @@ -12239,6 +12241,8 @@ algorithm
equation
(e1,_) = Types.matchType(e1, t1, DAE.T_BOOL_DEFAULT, true);
(t2_1,t3_1) = Types.ifExpMakeDimsUnknown(t2,t3);
t2 = Types.getUniontypeIfMetarecordReplaceAllSubtypes(t2);
t3 = Types.getUniontypeIfMetarecordReplaceAllSubtypes(t3);
(e3_1,t3_1) = Types.matchType(e3, t3, t2, true);
c = constIfexp(e1, c1, c2, c3) "else-part type converted to match then-part" ;
(cache,exp,ty) = cevalIfexpIfConstant(cache,env, e1, e2, e3_1, c1, t2, t3, t3_1, impl, st, inInfo);
Expand Down

0 comments on commit 326a434

Please sign in to comment.